import sys input = lambda : sys.stdin.readline().rstrip() sys.setrecursionlimit(2*10**5+10) write = lambda x: sys.stdout.write(x+"\n") debug = lambda x: sys.stderr.write(x+"\n") writef = lambda x: print("{:.12f}".format(x)) n,L,R = list(map(int, input().split())) a = list(map(int, input().split())) l = [-1]*62 ng = 0 for i in range(1,n): v = a[i] p = a[i-1] for b in range(62)[::-1]: if (v>>b&1) == (p>>b&1): continue if v>>b&1: if l[b]==1: ng = 1 break l[b] = 0 else: if l[b]==0: ng = 1 break l[b] = 1 break if ng: break def sub(r): if r<0: return 0 ll = [] v = 0 for i in range(62)[::-1]: if l[i]==-1: if v+(1<