#include <bits/stdc++.h>
using namespace std;
template <class T>
T Mul(T x, T y, T P) {
  T F1 = 0;
  while (y) {
    if (y & 1) {
      F1 += x;
      if (F1 < 0 || F1 >= P) F1 -= P;
    }
    x <<= 1;
    if (x < 0 || x >= P) x -= P;
    y >>= 1;
  }
  return F1;
}
template <class T>
T Pow(T x, T y, T P) {
  T F1 = 1;
  x %= P;
  while (y) {
    if (y & 1) {
      F1 = Mul(F1, x, P);
    }
    x = Mul(x, x, P);
    y >>= 1;
  }
  return F1;
}
template <class T>
T Gcd(T x, T y) {
  if (y == 0) return x;
  T z;
  while (z = x % y) {
    x = y, y = z;
  }
  return y;
}
template <class T>
void UpdateMin(T &x, T y) {
  if (y < x) {
    x = y;
  }
}
template <class T>
void UpdateMax(T &x, T y) {
  if (x < y) {
    x = y;
  }
}
template <class T>
T Sqr(const T x) {
  return x * x;
}
template <class T>
T Abs(const T x) {
  return x < 0 ? -x : x;
}
class ReadBuffer {
 private:
  char buff[20000000];
  char *buf;

 public:
  void init(int size = 20000000) {
    fread(buff, 1, size, stdin);
    buf = buff;
  }
  template <class T>
  bool readInteger(T &x) {
    x = 0;
    while (*buf && isspace(*buf)) ++buf;
    if (*buf == 0) return false;
    static bool flag;
    flag = 0;
    if (*buf == '-')
      flag = true;
    else
      x = *buf - '0';
    while (isdigit(*++buf)) x = x * 10 + *buf - '0';
    if (flag) x = -x;
    return true;
  }
  template <class T>
  bool readFloat(T &x) {
    long double nowpos = 0.1;
    x = 0;
    while (*buf && isspace(*buf)) ++buf;
    if (*buf == 0) return false;
    static bool flag, decimal;
    decimal = flag = 0;
    if (*buf == '-')
      flag = true, ++buf;
    else if (*buf == '.')
      decimal = true;
    while (isdigit(*buf) || *buf == '.') {
      if (*buf == '.')
        decimal = true;
      else {
        if (decimal) {
          x += nowpos * (*buf - '0');
          nowpos *= 0.1;
        } else {
          x = x * 10 + *buf - '0';
        }
      }
      ++buf;
    }
    return true;
  }
  bool readChar(char c) {
    if (*buf == 0) return 0;
    return c = *buf++, 1;
  }
  bool readString(char *s) {
    while (*buf && isspace(*buf)) ++buf;
    if (!*buf) return false;
    while (!isspace(*buf)) *s++ = *buf++;
    *s++ = 0;
    return true;
  }
  int countSpacetonext() {
    int total = 0;
    while (*buf && *buf == ' ') ++total, ++buf;
    return total;
  }
  bool splitBycharactor(char *s, char Split = '\n') {
    while (*buf && *buf != Split) *s++ = *buf++;
    *s++ = 0;
    return *buf != 0;
  }
};
struct EDGE {
  int T;
  EDGE *Nxt;
};
int dp[43][1048580];
char s[30][30];
inline int change(char s, int np) {
  if (s == 'a') return np ? -1 : 1;
  if (s == 'b') return np ? 1 : -1;
  return 0;
}
int n;
bool fix[43][1048580];
bool ban[30][30];
bool correct[30][30];
int solve(int i, int j, char pos, char neg, int deep, int opt) {
  fix[deep][opt] = 1;
  dp[deep][opt] = s[i][j] == pos ? 1 : (s[i][j] == neg ? -1 : 0);
  int fans = ~0U >> 1;
  if (i == n && j == n) return dp[deep][opt];
  for (int k = 1; k <= n; ++k) {
    int l = i + j + 1 - k;
    if (l > 0 && l <= n) ban[k][l] = correct[k][l] = 0;
  }
  for (int k = 1; k <= n; ++k) {
    int l = i + j - k;
    if (l > 0 && l <= n) {
      if (correct[k][l]) ban[k + 1][l] = ban[k][l + 1] = 1;
    }
  }
  for (int k = 1; k <= n; ++k) {
    int l = i + j + 1 - k;
    if (l > 0 && l <= n) {
      if (ban[k][l]) {
        int nopt = 0;
        for (int x = 1; x <= n; ++x) {
          int y = i + j + 1 - x;
          if (y > 0 && y <= n) {
            if (ban[x][y] && s[x][y] == s[k][l]) {
              nopt |= 1 << (x - 1);
              ban[x][y] = 0;
              correct[x][y] = 1;
            } else
              correct[x][y] = 0;
          }
        }
        if (!fix[deep + 1][nopt]) solve(k, l, neg, pos, deep + 1, nopt);
        UpdateMin(fans, dp[deep + 1][nopt]);
      }
    }
  }
  return dp[deep][opt] -= fans;
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%s", s[i] + 1);
  }
  correct[1][1] = 1;
  int ans = solve(1, 1, 'b', 'a', 0, 1);
  printf("%s\n", ans < 0 ? "FIRST" : (ans > 0 ? "SECOND" : "DRAW"));
  scanf("%d", &n);
  return 0;
}
