IntermediateRating 1300
Nim
Two players take turns removing any positive number of stones from one pile; whoever takes the last stone wins. With best play, does the first player win? Print FIRST or SECOND.
Input
n, then n pile sizes.
Output
FIRST or SECOND.
Sample 1
Input
2 1 1
Output
SECOND
Sample 2
Input
3 1 2 3
Output
SECOND
Output appears here