You are given $$$n$$$ points in the plane $$$(n \leq 100)$$$. All the points are distinct. Each point is labeled with a letter.
Find the largest curly palindrome.
A curly palindrome is a sequence such that:
The first line of input contains a single integer, $$$n$$$ ($$$1 \leq n \leq 100$$$) — the number of points in the input.
Each of the next $$$n$$$ lines contains the description of a labeled point. Each line contains two integers $$$x$$$ and $$$y$$$ and a lowercase english character $$$c$$$, ($$$0 \leq x,y \leq 10^9$$$) — the coordinates of the point and the label of the point.
Print a single line containing the length of the largest curly palindrome of the labeled pointset. If the length can be unbounded, instead print on a single line the word "Infinity"
4 0 0 o 1 1 c 2 2 p 3 3 c
2
3 2 3 e 3 2 e 8 9 e
Infinity
In the second case, palindromes of any length $$$k$$$ can be made, by starting from some point, and repeatedly walking counterclockwise around the triangle formed by the three e's. This length can be unbounded, so the output is "Infinity"
| Name |
|---|


