#include using namespace std; #define FOR(i,m,n) for(int i=(m);i<(n);++i) #define REP(i,n) FOR(i,0,n) #define ALL(v) (v).begin(),(v).end() using ll = long long; constexpr int INF = 0x3f3f3f3f; constexpr long long LINF = 0x3f3f3f3f3f3f3f3fLL; constexpr double EPS = 1e-8; constexpr int MOD = 998244353; // constexpr int MOD = 1000000007; constexpr int DY4[]{1, 0, -1, 0}, DX4[]{0, -1, 0, 1}; constexpr int DY8[]{1, 1, 0, -1, -1, -1, 0, 1}; constexpr int DX8[]{0, -1, -1, -1, 0, 1, 1, 1}; template inline bool chmax(T& a, U b) { return a < b ? (a = b, true) : false; } template inline bool chmin(T& a, U b) { return a > b ? (a = b, true) : false; } struct IOSetup { IOSetup() { std::cin.tie(nullptr); std::ios_base::sync_with_stdio(false); std::cout << fixed << setprecision(20); } } iosetup; int main() { // https://oeis.org/A002187 const vector grundy{8, 1, 1, 2, 0, 3, 1, 1, 0, 3, 3, 2, 2, 4, 4, 5, 5, 9, 3, 3, 0, 1, 1, 3, 0, 2, 1, 1, 0, 4, 5, 3, 7, 4}; const auto f = [&](const int n) -> int { if (n == 0 || n == 14 || n == 34) return 0; if (n == 16 || n == 17 || n == 31 || n == 51) return 2; return grundy[n % grundy.size()]; }; int t; cin >> t; while (t--) { int a, b; cin >> a >> b; cout << ((f(a - 2) ^ f(b - 2)) == 0 ? "Second\n" : "First\n"); } return 0; // vector grundy(n, 0); // FOR(l, 1, n) { // set s{grundy[max(l - 2, 0)]}; // FOR(i, 1, l - 1) s.emplace(grundy[i - 1] ^ grundy[l - i - 2]); // while (s.contains(grundy[l])) ++grundy[l]; // } // REP(l, n) cout << grundy[l] << " \n"[l + 1 == n]; }