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

Solution:
#include <bits/stdc++.h>
using namespace std;
int n, m, k;
map<int, vector<pair<int, int> > > h, v;
vector<int> games, type, pos;
vector<vector<pair<int, int> > > wheres;
void getcut() {
  int a, b, c, d;
  scanf("%d%d%d%d", &a, &b, &c, &d);
  if (a == c) {
    if (b > d) swap(b, d);
    v[a].push_back(make_pair(b, d));
  } else {
    if (a > c) swap(a, c);
    h[b].push_back(make_pair(a, c));
  }
}
void build(map<int, vector<pair<int, int> > >& m, int W, int H, int t) {
  int z = 1, top = 0, k = -1;
  for (typeof(m.begin()) it = m.begin(); it != m.end(); ++it) {
    int big = 0;
    top += it->first - z;
    if (it->first - z > 0) k = z;
    z = it->first + 1;
    sort(it->second.begin(), it->second.end());
    vector<int> col;
    for (int i = 0; i < it->second.size(); ++i)
      col.push_back(it->second[i].first), col.push_back(it->second[i].second);
    col.push_back(H);
    sort(col.begin(), col.end());
    set<int> o;
    int now = 0, pp = 0, qq = 0;
    type.push_back(t);
    pos.push_back(it->first);
    vector<pair<int, int> > where;
    while (pp < col.size()) {
      int last = now;
      now = col[pp++];
      while (qq < it->second.size() && it->second[qq].first < now)
        o.insert(it->second[qq].second), ++qq;
      while (!o.empty() && *o.begin() < now) o.erase(o.begin());
      if (o.empty()) {
        big += now - last;
        where.push_back(make_pair(last, now));
      }
    }
    wheres.push_back(where);
    games.push_back(big);
  }
  if (z != W) top += W - z, k = W - 1;
  if (top & 1) {
    games.push_back(H);
    type.push_back(t);
    vector<pair<int, int> > where;
    where.push_back(make_pair(0, H));
    wheres.push_back(where);
    pos.push_back(k);
  }
}
void solve(int x) {
  int p = 0, a = x, z;
  while (a) {
    a >>= 1;
    ++p;
  }
  --p;
  for (int i = 0; i < games.size(); ++i) {
    if ((long long)games[i] & 1 << p) {
      z = i;
      break;
    }
  }
  int g = x ^ games[z], start = wheres[z][0].first, end = start;
  p = 0;
  g = games[z] - g;
  while (g) {
    if (wheres[z][p].second - wheres[z][p].first >= g) {
      end = wheres[z][p].first + g;
      g = 0;
    } else
      g -= wheres[z][p].second - wheres[z][p].first;
    ++p;
  }
  if (type[z] == 0)
    printf("%d %d %d %d\n", pos[z], start, pos[z], end);
  else
    printf("%d %d %d %d\n", start, pos[z], end, pos[z]);
}
int main() {
  scanf("%d%d%d", &n, &m, &k);
  while (k--) getcut();
  build(h, m, n, 1);
  build(v, n, m, 0);
  int x = 0;
  for (int i = 0; i < games.size(); ++i) x ^= games[i];
  if (x) {
    printf("FIRST\n");
    solve(x);
  } else
    printf("SECOND\n");
}