N = int(input()) A = list(map(int, input().split())) M = 0 for a in A: M |= a for i in range(63): if (M>>i) & 1 == 0: ans = 1<