Time Limit: 1000MS | Memory Limit: 65536K | |
Total Submissions: 10071 | Accepted: 3051 |
Description
FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer arranges his cows in a line and herds them past the judges.
The contest organizers ado