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. Then next information will be printed:
Teacher with maximum Salary
Teacher with maximum Salary who runs Physics
Teacher with minimum Salary
Teacher with minimum Salary who runs Maths
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 next information (each data about the Teacher must be printed in a separate line):
Teacher with maximum Salary
Teacher with maximum Salary who runs Physics
Teacher with minimum Salary
Teacher with minimum Salary who runs Maths