fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int t; cin >> t;
  7. while(t--) {
  8. int n; cin >> n;
  9. if ((n+1)%3 == 0 || (n-1)%3 == 0) cout << "First";
  10. else cout << "Second";
  11. cout << "\n";
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5320KB
stdin
6
1
3
5
100
999
1000
stdout
First
Second
First
First
Second
First