문제
The milk business is booming! Farmer John's milk processing factory consists of
To try and improve efficiency, Farmer John installs a conveyor belt in each of its walkways. Unfortunately, he realizes too late that each conveyor belt only moves one way, so now travel along each walkway is only possible in a single direction! Now, it is no longer the case that one can travel from any station to any other station.
However, Farmer John thinks that all may not be lost, so long as there is at least one station
SAMPLE INPUT:
3
1 2
3 2SAMPLE OUTPUT:
2Problem credits: Dhruv Rohatgi
입력
The first line contains an integer
출력
If there exists a station