#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(0); cin.tie(0); int n; cin>>n; vectora(n); for(int i=0;i>a[i]; } ll ans{}; int rem{}; for(int i{}; i < 64; ++i){ rem/=2; for(int j{}; j < n;++j){ if(a[j] & (1LL< 0) ans|=(1LL << i); } cout << ans << '\n'; return 0; }