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;
char buf[1 << 21], *p1 = buf, *p2 = buf;
template <class T>
void read(T &x) {
  x = 0;
  int c = getchar();
  int flag = 0;
  while (c < '0' || c > '9') flag |= (c == '-'), c = getchar();
  while (c >= '0' && c <= '9')
    x = (x << 3) + (x << 1) + (c ^ 48), c = getchar();
  if (flag) x = -x;
}
template <class T>
T _max(T a, T b) {
  return b < a ? a : b;
}
template <class T>
T _min(T a, T b) {
  return a < b ? a : b;
}
template <class T>
bool checkmax(T &a, T b) {
  return a < b ? a = b, 1 : 0;
}
template <class T>
bool checkmin(T &a, T b) {
  return b < a ? a = b, 1 : 0;
}
int n, m, k;
map<int, vector<pair<int, int> > > lx, ly;
map<int, vector<pair<int, int> > >::iterator it;
set<int> visx, visy;
vector<pair<int, int> > X, Y;
int sg = 0;
vector<pair<int, int> > merge(vector<pair<int, int> > &v) {
  sort(v.begin(), v.end());
  vector<pair<int, int> > w;
  for (int i = 0; i < (int)v.size(); ++i) {
    if (w.empty()) {
      w.push_back(v[i]);
    } else if (w.back().first <= v[i].first && v[i].first <= w.back().second) {
      checkmax(w.back().second, v[i].second);
    } else {
      w.push_back(v[i]);
    }
  }
  return w;
}
int calc(vector<pair<int, int> > &v) {
  int ans = 0;
  for (int i = 0; i < (int)v.size(); ++i) ans += v[i].second - v[i].first;
  return ans;
}
void init() {
  read(n);
  read(m);
  read(k);
  for (int i = 1; i <= k; ++i) {
    int x1, x2, jzyakioi, hcyakioi;
    read(x1);
    read(jzyakioi);
    read(x2);
    read(hcyakioi);
    if (x1 == x2) {
      if (jzyakioi > hcyakioi) swap(jzyakioi, hcyakioi);
      lx[x1].push_back(make_pair(jzyakioi, hcyakioi));
      visx.insert(x1);
    } else {
      if (x1 > x2) swap(x1, x2);
      ly[jzyakioi].push_back(make_pair(x1, x2));
      visy.insert(jzyakioi);
    }
  }
  for (it = lx.begin(); it != lx.end(); ++it) {
    vector<pair<int, int> > now = it->second;
    now = merge(now);
    it->second = now;
    int num = m - calc(now);
    X.push_back(make_pair(it->first, num));
    sg ^= num;
  }
  if ((int)visx.size() <= n - 1) {
    for (int i = 1; i < n; ++i)
      if (!visx.count(i)) {
        X.push_back(make_pair(i, m));
        break;
      }
    if ((n - 1 - (int)visx.size()) & 1) sg ^= m;
  }
  for (it = ly.begin(); it != ly.end(); ++it) {
    vector<pair<int, int> > now = it->second;
    now = merge(now);
    it->second = now;
    int num = n - calc(now);
    Y.push_back(make_pair(it->first, num));
    sg ^= num;
  }
  if ((int)visy.size() <= m - 1) {
    for (int i = 1; i < m; ++i)
      if (!visy.count(i)) {
        Y.push_back(make_pair(i, n));
        break;
      }
    if ((m - 1 - (int)visy.size()) & 1) sg ^= n;
  }
}
void print(int cur, vector<pair<int, int> > &v, int k, int typ) {
  int l = 0, tot = typ == 0 ? m : n;
  ;
  vector<pair<int, int> > w;
  if (v.empty()) {
    w.push_back(make_pair(0, tot));
  } else {
    if (v[0].first > 0) w.push_back(make_pair(0, v[0].first));
    v.push_back(make_pair(tot, tot));
    for (int i = 0; i < (int)v.size() - 1; ++i) {
      if (v[i].second <= v[i + 1].first) {
        w.push_back(make_pair(v[i].second, v[i + 1].first));
      }
    }
  }
  for (auto x : w) {
    l += x.second - x.first;
    if (l >= k) {
      int pos = x.second - l + k;
      if (typ == 0)
        printf("%d 0 %d %d\n", cur, cur, pos);
      else
        printf("0 %d %d %d\n", cur, pos, cur);
      return;
    }
  }
}
void solve() {
  if (sg == 0) {
    printf("SECOND\n");
    return;
  }
  printf("FIRST\n");
  int pos = -1;
  for (int i = 0; i < (int)X.size(); ++i) {
    if ((sg ^ X[i].second) <= X[i].second) {
      pos = i;
      break;
    }
  }
  if (~pos) {
    int num = X[pos].first;
    print(num, lx[num], X[pos].second - (sg ^ X[pos].second), 0);
    return;
  }
  pos = -1;
  for (int i = 0; i < (int)Y.size(); ++i) {
    if ((sg ^ Y[i].second) <= Y[i].second) {
      pos = i;
      break;
    }
  }
  if (~pos) {
    int num = Y[pos].first;
    print(num, ly[num], Y[pos].second - (sg ^ Y[pos].second), 1);
    return;
  }
}
int main() {
  init();
  solve();
  return 0;
}