N,K=map(int,input().split()) X=1 for i in range(N): a=int(input()) X=X|(X<