eolymp
bolt
Try our new interface for solving problems

Game

Two players play a graph coloring game. They make moves in turn, first player moves first. Initially they take some undirected graph. At each move, a player can color an uncolored vertex with either white or black color (each player can use any color, possibly different at different turns). It's not allowed to color two adjacent vertices with the same color. A player that can't move loses.

After playing this game for some time, they decided to study it. For a start, they've decided to study very simple kind of graph - a chain. A chain consists of n vertices, v1, v2, ... , vn, and n - 1 edges, connecting v1 with v2, v2 with v3, ..., vn-1 with vn.

Given a position in this game, and assuming both players play optimally, who will win?

Input

The first line contains the integer n (1n105).

The second line describes the current position. It contains n digits without spaces. i-th digit describes the color of vertex vi: 0 - uncolored, 1 - black, 2 - white. No two vertices of the same color are adjacent.

Output

On the only line print FIRST if the player moving first in that position wins the game, and SECOND otherwise.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5
00100
Output example #1
SECOND
Input example #2
4
1020
Output example #2
FIRST
Source 2007 Петрозаводск, Petr Mitrichev Contest 2, Январь 30, Задача C