PROGRAMMING:Application of Commons type
The school staff are divided into two categories: teachers and administrators. The data of teachers include: number, name, occupation (T), professional title (Professor, associate professor, lecturer, etc.); The data of administrative personnel include: number, name, occupation (W), department number (100200300, etc.). It is required to input the data of several personnel and output their data, and count the number of teachers (tcount) and administrators (wcount). Using dynamic memory allocation function.
###Input format:
Enter the first line to give a positive integer n, and then give the information of N employees.
###Output format:
Output the specified number of employee information, and output the number of teachers and administrators in the last line.
###Input example:
```in
five
10000 jack t professor
20000 rose t associate professor
30000 mike w 100
40000 robin w 200
50000 lina t lecturer
```
###Output example:
```out
10000 jack t professor
20000 rose t associate professor
30000 mike w 100
40000 robin w 200
50000 lina t lecturer
tcount = 3, wcount = 2
```
answer:If there is no answer, please comment
###Input format:
Enter the first line to give a positive integer n, and then give the information of N employees.
###Output format:
Output the specified number of employee information, and output the number of teachers and administrators in the last line.
###Input example:
```in
five
10000 jack t professor
20000 rose t associate professor
30000 mike w 100
40000 robin w 200
50000 lina t lecturer
```
###Output example:
```out
10000 jack t professor
20000 rose t associate professor
30000 mike w 100
40000 robin w 200
50000 lina t lecturer
tcount = 3, wcount = 2
```
answer:If there is no answer, please comment