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;
template <typename A, typename B>
ostream& operator<<(ostream& out, const pair<A, B>& p) {
  out << "(" << p.first << "," << p.second << ") ";
  return out;
}
template <typename A, typename B>
void printP(const pair<A, B>& p, const char* str = NULL) {
  if (!(1 && !1)) return;
  if (str != NULL) cout << str << ":";
  cout << "(" << p.first << "," << p.second << ") ";
}
template <typename T>
void printV(const vector<T>& v, const char* str = NULL) {
  if (!(1 && !1)) return;
  if (str != NULL) cout << str << ": ";
  for (int i = 0; i < (v.size()); ++i) cout << v[i] << " ";
  cout << '\n';
}
template <typename T>
void printC(T& container, const char* str = NULL) {
  if (!(1 && !1)) return;
  if (str != NULL) cout << str << ":";
  for (__typeof((container).begin()) it = ((container).begin());
       it != (container).end(); ++it) {
    cout << (*it) << " ";
  }
  cout << '\n';
}
const int INF = 1000010111;
const int S_N = 152;
const int MOD = 1000000007;
int mex(vector<int>& v, int start = 1) {
  for (__typeof((v).begin()) it = ((v).begin()); it != (v).end(); ++it) {
    if (*it != start) return start;
    start++;
  }
  return start;
}
struct Side {
  int lines;
  int len;
  map<int, vector<pair<int, int> > > M;
  vector<int> C;
  int cntFree(vector<pair<int, int> >& v, bool s = true) {
    int sum = 0, last = 0;
    v.push_back(make_pair(len, len));
    if (s) sort((v).begin(), (v).end());
    for (__typeof((v).begin()) it = ((v).begin()); it != (v).end(); ++it) {
      if (it->first > last) sum += (it->first - last);
      last = max(last, it->second);
    }
    return sum;
  }
  int cut(vector<pair<int, int> >& v, int need) {
    int sum = 0;
    int last = 0;
    v.push_back(make_pair(len, len));
    for (__typeof((v).begin()) it = ((v).begin()); it != (v).end(); ++it) {
      if (it->first > last) sum += (it->first - last);
      if (sum >= need) {
        last = it->first;
        break;
      } else
        last = max(last, it->second);
    }
    if (sum < need) return -1;
    last -= sum - need;
    return last;
  }
  int grundi() {
    int g = 0;
    if ((lines - C.size()) % 2 == 1) g = len;
    for (__typeof((C).begin()) it = ((C).begin()); it != (C).end(); ++it)
      g ^= cntFree(M[*it], len);
    if ((1 && !1)) printf("Grundi(%d, %d) = %d\n", lines, len, g);
    return g;
  }
  void add(int line, int s, int e) {
    if (s > e) swap(s, e);
    if (M[line].empty()) C.push_back(line);
    M[line].push_back(make_pair(s, e));
  }
  pair<int, int> move(int g) {
    int emptyLine = mex(C, 1);
    if (emptyLine <= lines) C.push_back(emptyLine);
    for (int i = 0; i < C.size(); i++) {
      int p = C[i];
      int free = cntFree(M[p], false);
      int free2 = free ^ g;
      if (free2 <= free) {
        int last = cut(M[p], free - free2);
        return make_pair(p, last);
      }
    }
    return make_pair(-1, -1);
  }
};
void solve() {
  Side T[2];
  Side &X = T[0], &Y = T[1];
  int n, m, k;
  cin >> n >> m >> k;
  X.lines = n - 1, Y.lines = m - 1;
  X.len = m, Y.len = n;
  for (int _ = 0; _ < (k); ++_) {
    int x1, y1, x2, y2;
    cin >> x1 >> y1 >> x2 >> y2;
    if (x1 == x2)
      X.add(x1, y1, y2);
    else
      Y.add(y1, x1, x2);
  }
  int g = X.grundi() ^ Y.grundi();
  if (g == 0)
    cout << "SECOND" << '\n';
  else {
    cout << "FIRST" << '\n';
    pair<int, int> r = X.move(g);
    pair<pair<int, int>, pair<int, int> > l;
    if (r.first != -1) {
      l = make_pair(make_pair(r.first, 0), make_pair(r.first, r.second));
    } else {
      r = Y.move(g);
      l = make_pair(make_pair(0, r.first), make_pair(r.second, r.first));
    }
    cout << l.first.first << " " << l.first.second << " " << l.second.first
         << " " << l.second.second << '\n';
  }
}
int main() {
  solve();
  return 0;
}