#include using namespace std; int a,b,n,k,i; int main() { cin>>n; a = 0; for( i = 1 ; i <= n ; i++ ) { cin>>b; if( b - a > 1 ) { k = 1; cout<