LearnPy Hub
← Arena
IntermediateRating 1200

Stone Game

There are n stones; players alternately take 1, 2 or 3. Whoever takes the last stone wins. With perfect play, print FIRST or SECOND for the winner.

Input

One integer n.

Output

FIRST or SECOND.

Sample 1

Input
4
Output
SECOND

Sample 2

Input
5
Output
FIRST
solution.py
Output appears here
Stone Game · Python Arena problem · LearnPy Hub