fork download
  1. #include<bits/stdc++.h>
  2. #define ll long long
  3. #define nl "\n"
  4. using namespace std;
  5.  
  6. int main(){
  7. ios_base::sync_with_stdio(0); cin.tie(0);
  8. int t,n; cin >> t;
  9. while(t--){
  10. cin >> n;
  11. if((n+1) % 3 == 0 || (n-1) % 3 == 0) cout << "First\n";
  12. else cout << "Second\n";
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5264KB
stdin
6
1
3
5
100
999
1000
stdout
First
Second
First
First
Second
First