Implement a class Person.
Implement a class Teacher that extends Person.
List of people will be created:
Input data will be added to the list. The list of Teachers and their number will be printed
The list of People who runs Math will be printed
The number of Teachers who runs Physics will be printed
Each line contains one of two types of people in the next format:
Person Surname Name Age
Teacher Surname Name Age Subject Salary
Print the list of Teachers first. In the next line print the number of Teachers. Then print list of Teachers who runs Math. Then print the number of Teachers who runs Physics.