LearnPy Hub
← Arena
AdvancedRating 1900

Piles With Moves 1, 3 or 4

From any pile a player may remove exactly 1, 3 or 4 stones. Players alternate; a player with no move loses. With several piles and perfect play, print FIRST or SECOND for the winner.

Input

n, then n pile sizes (≤ 10⁵).

Output

FIRST or SECOND.

Sample 1

Input
1
2
Output
SECOND

Sample 2

Input
1
7
Output
SECOND
solution.py
Output appears here
Piles With Moves 1, 3 or 4 · Python Arena problem · LearnPy Hub