#include using namespace std; int f(int a){ if(a%3<=1)return a%3; return -1; } int n; vector v; typedef pair P; void FIN(P a,P b){ cout<<"Yes"<=0); int res=1; while(k){ if(k&1)res*=n; n*=n; k>>=1; } return res; } signed main(){ cin>>n; v.resize(n); for(int i=0;i>v[i]; if(n>=24)n=24; vector

s; for(int j=0;j1){ int m=(r+l)>>1; if(s[m].first>=tmp)r=m; else l=m; } if(r