LearnPy Hub
← Arena
IntermediateRating 1200

Take 1 to k Stones

There are n stones. Players alternately take between 1 and k stones; whoever takes the last stone wins. With best play, print FIRST or SECOND for the winner.

Input

Two integers n and k.

Output

FIRST or SECOND.

Sample 1

Input
4 3
Output
SECOND

Sample 2

Input
5 3
Output
FIRST
solution.py
Output appears here
Take 1 to k Stones · Python Arena problem · LearnPy Hub