#include using namespace std; typedef long long ll; int main(){ ios::sync_with_stdio(false); cin.tie(0); ll n; cin>>n; ll y[n]; ll m = 0; bool same = true; bool k; for(int i=0;i>y[i]; m = min(m,y[i]); if(!i) k=y[i]; else if(k!=y[i]) same = false; } if(same){ cout<<1<