https://codeforces.com/gym/323862/problem/E
当大于等于5的时候,先手只需要在中间选2或者3,将两边分成两个相等的块,然后根据对手的操作,在对称的块上镜像操作,则必定赢
#include<bits/stdc++.h>
using namespace std;
int main(){
int t,n;
cin>>t;
while(t--){
cin>>n;
if(n>4){
cout<<"first"<<endl;
continue;
}
else if(n==2||n==3){
cout<<"second"<<endl;
continue;
}
else{
cout<<"first"<<endl;
continue;
}
}
}