Problem2164--Display information

2164: Display information

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 249  Solved: 33
[Submit] [Status] [Web Board] [Creator:]

Description

Enter the information of n persons (including teachers and students). Teacher data includes name, number, gender, and occupation. Student data includes name, number, gender, occupation. Output personnel information according to occupation type(output teacher first)

Input

Input information

Output

Display information

Sample Input Copy

001 A men student	
010 Z men teacher	
011 Y women teacher

Sample Output Copy

010 Z men teacher	
011 Y women teacher	
001 A men student

Source/Category

206