PROGRAMMING:Infer the number of students in their school
There are 'n' students from different schools in a competition. Give the relationship between'm 'and "two students belong to the same school". Please infer the number of schools and find the school with the largest number.
###Input format:
The first line is an integer 'n' in the range of '[2, 1000]',
The next 'n' line, each line is a student's name in the scene, each name is only composed of letters, the length is not more than '30'.
The next line is a non negative integer'm ', which means there is a'm' pair relationship;
Then there are'm 'lines. Each line is two names separated by spaces, indicating that they belong to the same school.
###Output format:
Output the number of schools and the number of schools with the largest number in one line, separated by a space.
###Input example:
```in
eight
Bill
Ellen
Ann
Chris
Daisy
Flin
Henry
Grace
five
Ann Chris
Ellen Chris
Daisy Flin
Henry Ellen
Grace Flin
```
###Output example:
```out
3 4
```
answer:If there is no answer, please comment
###Input format:
The first line is an integer 'n' in the range of '[2, 1000]',
The next 'n' line, each line is a student's name in the scene, each name is only composed of letters, the length is not more than '30'.
The next line is a non negative integer'm ', which means there is a'm' pair relationship;
Then there are'm 'lines. Each line is two names separated by spaces, indicating that they belong to the same school.
###Output format:
Output the number of schools and the number of schools with the largest number in one line, separated by a space.
###Input example:
```in
eight
Bill
Ellen
Ann
Chris
Daisy
Flin
Henry
Grace
five
Ann Chris
Ellen Chris
Daisy Flin
Henry Ellen
Grace Flin
```
###Output example:
```out
3 4
```
answer:If there is no answer, please comment