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 JAVA):

Solution:
// practice with rainboy
import java.io.*;
import java.util.*;

public class CF277C extends PrintWriter {
	CF277C() { super(System.out, true); }
	Scanner sc = new Scanner(System.in);
	public static void main(String[] $) {
		CF277C o = new CF277C(); o.main(); o.flush();
	}

	static class V {
		int l, r, y;
		V(int l, int r, int y) {
			if (l > r) {
				int tmp = l; l = r; r = tmp;
			}
			this.l = l; this.r = r; this.y = y;
		}
	}
	int gap(V[] vv, int p, int q, int m) {
		int r = 0, x = 0;
		for (int i = p; i < q; i++)
			if (vv[i].l > r) {
				x += vv[i].l - r;
				r = vv[i].r;
			} else
				r = Math.max(r, vv[i].r);
		x += m - r;
		return x;
	}
	int solve(V[] vv, int k, int m, int n, int[] yy, int[] xx) {
		Arrays.sort(vv, 0, k, (u, v) -> u.y != v.y ? u.y - v.y : u.l - v.l);
		int cnt = 0;
		int n_ = n - 1;
		for (int i = 0, j; i < k; i = j) {
			int y = vv[i].y;
			j = i + 1;
			while (j < k && vv[j].y == y)
				j++;
			int x = gap(vv, i, j, m);
			if (x != 0) {
				yy[cnt] = y;
				xx[cnt] = x;
				cnt++;
			}
			n_--;
		}
		if (n_ % 2 == 1) {
			int y = 1;
			if (k > 0) {
				if (vv[0].y > 1)
					y = 1;
				else if (vv[k - 1].y < n - 1)
					y = n - 1;
				else {
					y = -1;
					for (int i = 1; i < k; i++)
						if (vv[i].y - vv[i - 1].y > 1) {
							y = vv[i].y - 1;
							break;
						}
				}
			}
			yy[cnt] = y;
			xx[cnt] = m;
			cnt++;
		}
		return cnt;
	}
	int solve1(V[] vv, int k, int y, int x) {
		int p = 0;
		while (p < k && vv[p].y != y)
			p++;
		if (p == k)
			return x;
		int q = p + 1;
		while (q < k && vv[q].y == y)
			q++;
		int r = 0;
		for (int i = p; i < q; i++)
			if (vv[i].l > r) {
				x -= vv[i].l - r;
				if (x <= 0)
					return vv[i].l + x;
				r = vv[i].r;
			} else
				r = Math.max(r, vv[i].r);
		return r + x;
	}
	void main() {
		int n = sc.nextInt();
		int m = sc.nextInt();
		int k = sc.nextInt();
		V[] hh = new V[k];
		V[] vv = new V[k];
		int kh = 0, kv = 0;
		for (int h = 0; h < k; h++) {
			int x0 = sc.nextInt();
			int y0 = sc.nextInt();
			int x1 = sc.nextInt();
			int y1 = sc.nextInt();
			if (y0 == y1)
				hh[kh++] = new V(x0, x1, y0);
			else
				vv[kv++] = new V(y0, y1, x0);
		}
		int[] yh = new int[kh + 1];
		int[] xh = new int[kh + 1];
		int nh = solve(hh, kh, n, m, yh, xh);
		int[] yv = new int[kv + 1];
		int[] xv = new int[kv + 1];
		int nv = solve(vv, kv, m, n, yv, xv);
		int x = 0;
		for (int i = 0; i < nh; i++)
			x ^= xh[i];
		for (int i = 0; i < nv; i++)
			x ^= xv[i];
		if (x == 0) {
			println("SECOND");
			return;
		}
		println("FIRST");
		for (int i = 0; i < nh; i++) {
			int x_ = xh[i] - (xh[i] ^ x), y = yh[i];
			if (x_ > 0) {
				x_ = solve1(hh, kh, y, x_);
				println(0 + " " + y + " " + x_ + " " + y);
				return;
			}
		}
		for (int i = 0; i < nv; i++) {
			int x_ = xv[i] - (xv[i] ^ x), y = yv[i];
			if (x_ > 0) {
				x_ = solve1(vv, kv, y, x_);
				println(y + " " + 0 + " " + y + " " + x_);
				return;
			}
		}
	}
}