/* -*- coding: utf-8 -*- * * 1613.cc: No.1613 Rush and Remove - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ const int MAX_H = 300; const int MAX_W = 300; /* typedef */ /* global variables */ char fs[MAX_H][MAX_W + 4]; /* subroutines */ /* main */ int main() { int h, w; scanf("%d%d", &h, &w); for (int y = 0; y < h; y++) scanf("%s", fs[y]); int gdy = 0; for (int x = 0; x < w; x++) { int g = 0; for (int y = 0, b = 1; y < h; y++, b = (b << 1) % 3) if (fs[y][x] != '.') g = (g + b) % 3; gdy ^= g; } if (gdy) puts("First"); else puts("Second"); return 0; }