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