#import using namespace std;int N,a=1,i,j,k,d;main(){cin>>N;int A[N];for(;k>A[k];for(;i