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, ta, tb, sa, sb, now, ans;
pair<pair<int, int>, pair<int, int> > x[100005], y[100005], t;
void solve() {
  int p = -1;
  now = 0;
  if (ta == 0 || x[0].first.first != 1) p = 1;
  if (x[ta - 1].first.first != n - 1) p = n - 1;
  for (int i = 1; i <= ta; i++)
    if (x[i].first.first != x[i - 1].first.first) {
      if (x[i].first.first != x[i - 1].first.first + 1) {
        p = x[i - 1].first.first + 1;
        break;
      }
      int tmp = 0, sum = 0;
      for (int j = now; j < i; j++)
        if (tmp <= x[j].first.second) {
          tmp = x[j].second.second;
          sum += x[j].second.second - x[j].first.second;
        } else if (tmp < x[j].second.second) {
          sum += x[j].second.second - tmp;
          tmp = x[j].second.second;
        }
      int T = ans ^ (m - sum);
      tmp = 0;
      int pre = 0;
      if (m - sum < T) {
        now = i;
        continue;
      }
      for (int j = now; j < i; j++)
        if (tmp <= x[j].first.second) {
          if (x[j].first.second - tmp + pre >= m - sum - T) {
            printf("%d %d %d %d\n", x[j].first.first, 0, x[j].first.first,
                   tmp + m - sum - T - pre);
            return;
          }
          pre += x[j].first.second - tmp;
          tmp = x[j].second.second;
        } else if (tmp < x[j].second.second)
          tmp = x[j].second.second;
      if (m - tmp + pre >= m - sum - T) {
        printf("%d %d %d %d\n", x[now].first.first, 0, x[now].first.first,
               tmp + m - sum - T - pre);
        return;
      }
      now = i;
    }
  if (p != -1 && m > (ans ^ m)) {
    printf("%d %d %d %d\n", p, 0, p, m - (ans ^ m));
    return;
  }
  p = -1;
  now = 0;
  if (tb == 0 || y[0].first.first != 1) p = 1;
  if (y[tb - 1].first.first != m - 1) p = m - 1;
  for (int i = 1; i <= tb; i++)
    if (y[i].first.first != y[i - 1].first.first) {
      if (y[i].first.first != y[i - 1].first.first + 1) {
        p = y[i - 1].first.first + 1;
        break;
      }
      int tmp = 0, sum = 0;
      for (int j = now; j < i; j++)
        if (tmp <= y[j].first.second) {
          tmp = y[j].second.second;
          sum += y[j].second.second - y[j].first.second;
        } else if (tmp < y[j].second.second) {
          sum += y[j].second.second - tmp;
          tmp = y[j].second.second;
        }
      int T = ans ^ (n - sum);
      tmp = 0;
      int pre = 0;
      if (n - sum < T) {
        now = i;
        continue;
      }
      for (int j = now; j < i; j++)
        if (tmp <= y[j].first.second) {
          if (y[j].first.second - tmp + pre >= n - sum - T) {
            printf("%d %d %d %d\n", 0, y[j].first.first,
                   tmp + n - sum - T - pre, y[j].first.first);
            return;
          }
          pre += y[j].first.second - tmp;
          tmp = y[j].second.second;
        } else if (tmp < y[j].second.second)
          tmp = y[j].second.second;
      if (n - tmp + pre >= n - sum - T) {
        printf("%d %d %d %d\n", 0, y[now].first.first, tmp + n - sum - T - pre,
               y[now].first.first);
        return;
      }
      now = i;
    }
  printf("%d %d %d %d\n", 0, p, n - (ans ^ n), p);
}
int main() {
  scanf("%d%d%d", &n, &m, &k);
  for (int i = 0; i < k; i++) {
    scanf("%d%d%d%d", &t.first.first, &t.first.second, &t.second.first,
          &t.second.second);
    if (t.first.first == t.second.first && t.first.second > t.second.second)
      swap(t.first, t.second);
    if (t.first.second == t.second.second && t.first.first > t.second.first)
      swap(t.first, t.second);
    if (t.first.first == t.second.first) x[ta++] = t;
    if (t.first.second == t.second.second) {
      swap(t.first.second, t.first.first);
      swap(t.second.second, t.second.first);
      y[tb++] = t;
    }
  }
  ans = 0;
  sort(x, x + ta);
  x[ta].first.first = x[ta - 1].first.first + 1;
  now = 0;
  sa = 0;
  for (int i = 1; i <= ta; i++)
    if (x[i].first.first != x[i - 1].first.first) {
      sa++;
      int tmp = 0, sum = 0;
      for (int j = now; j < i; j++)
        if (tmp <= x[j].first.second) {
          tmp = x[j].second.second;
          sum += x[j].second.second - x[j].first.second;
        } else if (tmp < x[j].second.second) {
          sum += x[j].second.second - tmp;
          tmp = x[j].second.second;
        }
      ans ^= (m - sum);
      now = i;
    }
  if ((n - sa - 1) & 1) ans ^= m;
  sort(y, y + tb);
  y[tb].first.first = y[tb - 1].first.first + 1;
  now = 0;
  sb = 0;
  for (int i = 1; i <= tb; i++)
    if (y[i].first.first != y[i - 1].first.first) {
      sb++;
      int tmp = 0, sum = 0;
      for (int j = now; j < i; j++)
        if (tmp <= y[j].first.second) {
          tmp = y[j].second.second;
          sum += y[j].second.second - y[j].first.second;
        } else if (tmp < y[j].second.second) {
          sum += y[j].second.second - tmp;
          tmp = y[j].second.second;
        }
      ans ^= (n - sum);
      now = i;
    }
  if ((m - sb - 1) & 1) ans ^= n;
  if (ans) {
    printf("FIRST\n");
    solve();
  } else
    printf("SECOND\n");
  return 0;
}