#include using i64 = long long; int sg[200]; void solve() { int a, b; std::cin >> a >> b; if (a > 100) { a -= (a - 100) / 34 * 34; } if (b > 100) { b -= (b - 100) / 34 * 34; } if (sg[a] ^ sg[b]) { std::cout << "First\n"; } else { std::cout << "Second\n"; } } int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); for (int i = 2; i < 200; i++) { std::set s; for (int j = 2; j + 2 <= i; j++) { s.insert(sg[j] ^ sg[i - j]); } while (s.count(sg[i])) { sg[i]++; } } int t; std::cin >> t; while (t--) { solve(); } return 0; }