Problem: Two players play the following game. Initially, the players have a knife and a rectangular sheet of paper, divided into equal square grid cells of unit size. The players make moves in turn, the player who can't make a move loses. In one move, a player can take the knife and cut the paper along any segment of the grid line (not necessarily from border to border). The part of the paper, that touches the knife at least once, is considered cut. There is one limit not to turn the game into an infinite cycle: each move has to cut the paper, that is the knife has to touch the part of the paper that is not cut before.

Obviously, the game ends when the entire sheet is cut into 1 × 1 blocks. During the game, the pieces of the sheet are not allowed to move. It is also prohibited to cut along the border. The coordinates of the ends of each cut must be integers.

You are given an n × m piece of paper, somebody has already made k cuts there. Your task is to determine who will win if the players start to play on this sheet. You can consider that both players play optimally well. If the first player wins, you also need to find the winning first move.

Input

The first line contains three integers n, m, k (1 ≤ n, m ≤ 109, 0 ≤ k ≤ 105) — the sizes of the piece of paper and the number of cuts. Then follow k lines, each containing 4 integers xbi, ybi, xei, yei (0 ≤ xbi, xei ≤ n, 0 ≤ ybi, yei ≤ m) — the coordinates of the ends of the existing cuts. 

It is guaranteed that each cut has a non-zero length, is either vertical or horizontal and doesn't go along the sheet border.

The cuts may intersect, overlap and even be the same. That is, it is not guaranteed that the cuts were obtained during any correct game.

Output

If the second player wins, print "SECOND". Otherwise, in the first line print "FIRST", and in the second line print any winning move of the first player (the coordinates of the cut ends, follow input format to print them).

Examples

Input

2 1 0


Output

FIRST
1 0 1 1


Input

2 2 4
0 1 2 1
0 1 2 1
1 2 1 0
1 1 1 2


Output

SECOND

Solution (in PYTHON):

Solution:
from sys import stdin
from collections import defaultdict
def emp(l, a):
    cnt = pos = x = 0
    for y in a:
        if y[1]:
            cnt -= 1
        else:
            if not cnt:
                x += y[0] - pos
            cnt += 1
        pos = y[0]
    x += l - pos
    return x
def check(x, b):
    return x ^ b < x
def f(x, b):
    return x - (x ^ b)
def main():
    n, m, k = map(int, stdin.readline().split())
    xcut = defaultdict(list)
    ycut = defaultdict(list)
    for i in xrange(k):
        xb, yb, xe, ye = map(int, stdin.readline().split())
        if xb == xe:
            xcut[xb].extend([(min(yb, ye), 0), (max(yb, ye), 1)])
        else:
            ycut[yb].extend([(min(xb, xe), 0), (max(xb, xe), 1)])
    b = 0
    xb = dict()
    yb = dict()
    for t in xcut.keys():
        xcut[t].sort()
        xb[t] = emp(m, xcut[t])
        b ^= xb[t]
    if (n - 1 - len(xcut)) % 2:
        b ^= m
    for t in ycut.keys():
        ycut[t].sort()
        yb[t] = emp(n, ycut[t])
        b ^= yb[t]
    if (m - 1 - len(ycut)) % 2:
        b ^= n
    if b == 0:
        print "SECOND"
        return
    else:
        print "FIRST"
        if n - 1 - len(xcut) and check(m, b):
            for i in xrange(1, n):
                if i not in xcut:
                    print i, 0, i, f(m, b)
                    return
        if m - 1 - len(ycut) and check(n, b):
            for i in xrange(1, m):
                if i not in ycut:
                    print 0, i, f(n, b), i
                    return
        for t, a in xcut.items():
            if not check(xb[t], b): continue
            c = f(xb[t], b)
            cnt = pos = x = 0
            for y in a:
                if y[1] == 0:
                    if cnt == 0:
                        if x <= c <= x + y[0] - pos:
                            print t, 0, t, pos + c - x
                            return
                        x += y[0] - pos
                    cnt += 1
                else:
                    cnt -= 1
                pos = y[0]
            print t, 0, t, pos + c - x
            return
        for t, a in ycut.items():
            if not check(yb[t], b): continue
            c = f(yb[t], b)
            cnt = pos = x = 0
            for y in a:
                if y[1] == 0:
                    if cnt == 0:
                        if x <= c <= x + y[0] - pos:
                            print 0, t, pos + c - x, t
                            return
                        x += y[0] - pos
                    cnt += 1
                else:
                    cnt -= 1
                    pos = y[0]
            print 0, t, pos + c - x, t
            return
main()