#include using namespace std; int N; long A; main() { cin>>N; for(;N--;) { long B;cin>>B;A|=B; } int id=0; while(A>>id&1)id++; cout<<(1LL<