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 people will be printed using
Each line contains one of two types of people in the next format:
Person Surname Name Age
Teacher Surname Name Age Subject Salary
For each person print in one line its data.