#include using namespace std; int Abv(int a,int b){ if(a > b){ return a - b; }else{ return b - a; } } int main(){ int n; cin>>n; int x[n]; int absv = 1000000; int abst; cin>>x[0]; for (int i = 1; i < n ; ++i) { cin>>x[i]; for (int j = 0; j <= i-1; ++j) { if(x[i] == x[j]){ if(i == j){ continue; } cout<<"0"< x[j]){ abst = x[i] - x[j]; }else{ abst = x[j] - x[i]; } if( abst <= absv ){ absv = abst; } if(absv == 1){ cout<<"1"<