#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define INT_MAX_VALUE 2147483647 #define LONG_LONG_MAX_VALUE 9223372036854775807 #define ll long long #define ld long double struct XX{ int s; vector t; }; class xxGreater { public: bool operator()(const XX& riLeft, const XX& riRight) const { //第2条件 /*if((riLeft.s) == (riRight.s)){ return riLeft.s < riRight.s;//<:昇順(小さいものから順番)、>:降順(大きいものから順番) //プライオリティキューの場合は > で、top()すると値の小さいものがとれる }*/ //第1条件 return (riLeft.s) < (riRight.s); } }; //map prime_f(long long n){ // mapres; // for(int i=2;i*i<=n;i++){ // while(n%i==0){ // ++res[i]; // n/=i; // } // } // if(n!=1)res[n]=1; // return res; //} //int n; ////int dat[2*10000000]; ////int dat2[2*10000000]; //int dat[10]; //int dat2[10]; // //void init(int n_){ // n=1; // while(n0){ // k=(k-1)/2; // dat[k]=dat[k*2+1]+dat[k*2+2]; // } //} // ////[a,b)の間を[l,r]区間で比較しアップデート ////引数のindexに注意 ////nは固定。initで計算すみ ////update2(L[i],R[i]+1,0,0,n,D[i]); //void update2(int a,int b,int k,int l,int r,int v){//v更新値、区間は0-index // if(r<=a || b<=l)return; // if(a<=l && r<=b){ // dat[k]+=dat2[k]; // if(r-l>1){ // dat2[k*2+1]+=dat2[k]/2; // dat2[k*2+1]+=dat2[k]/2; // } // dat2[k]=v*(r-l); // return; // }else{ // update2(a,b,k*2+1,l,(l+r)/2,v); // update2(a,b,k*2+2,(l+r)/2,r,v); // return; // } //} // //int query(int a,int b,int k,int l,int r){ // if(r<=a || b<=l)return 0; // if(a<=l && r<=b){ // dat[k]+=dat2[k]; // if(r-l>1){ // dat2[k*2+1]+=dat2[k]/2; // dat2[k*2+1]+=dat2[k]/2; // } // dat2[k]=0; // return dat[k]; // } // else{ // int vl=query(a,b,k*2+1,l,(l+r)/2); // int vr=query(a,b,k*2+2,(l+r)/2,r); // return vl+vr; // } //} int main(int argc, const char * argv[]) { //scanf("%s",S); //scanf("%d",&N); //scanf("%lld %lld",&target1,&target2); //sscanf(tmp.c_str(),"%dd%d%d",&time[i], &dice[i], &z[i]); //getline(cin, target); //ifstream ifs("3.txt");//テスト用 //ifs >> a; //ここから //入力高速化 ios::sync_with_stdio(false); cin.tie(0); int N; cin >> N; vector a; for(int i=0;i> tmp; a.push_back(tmp); } ll wa[100000]; int kotonaru[100000]; for(int i=0;i=0){ avg=(wa[r]-wa[l-1])/(r-(l-1)); if((wa[r]-wa[l-1])%(r-(l-1))>0){ avg++; } }else{ avg=(wa[r]/(r+1)); if(wa[r]%(r+1)){ avg++; } } int mid=(int)(lower_bound(a.begin(),a.end(),avg)-a.begin()); //l~mid-1の間の異なる整数 int t1,t2; if(mid-1<0){ t1=0; }else{ t1=kotonaru[mid-1]; } if(l-1<0){ t2=0; }else{ t2=kotonaru[l-1]; } int tmp1=t1-t2; //mid~r間の異なる整数 int tmp2=kotonaru[r]-t1; //奇数残すとまける。 if(tmp1%2==0){ r=mid-1; if(r<0){ r=0; } }else if(tmp2%2==0){ l=mid; }else{ l=mid; } if(r==l)break; ind++; } if(ind%2==1){ cout << "First" << endl; }else{ cout << "Second" << endl; } //ここまで //cout << "ans" << endl; //printf("%.0f\n",ans);//小数点以下表示なし //printf("%.7f\n",p); return 0; }