문제
Problem 1: Cow Rectangles [Nick Wu, 2015]
The locations of Farmer John's N cows
입력
The first line of input contains N. Each of the next N lines describes a cow, and contains two integers and a character. The integers indicate a point
출력
Print two integers. The first line should contain the maximum number of Holsteins that can be enclosed by a fence containing no Guernseys, and second line should contain the minimum area enclosed by such a fence.
예제1
5
1 1 H
2 2 H
3 3 G
4 4 H
6 6 H
2
1