import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N,X,*A = map(int,read().split()) Aplus = [x + 1 for x in A] p = 1 for x in Aplus: p *= x if p > X + 100: break p -= 1 if p > X: answer = '0' * X print(answer) exit() if any(x == 1 for x in A): if N == 1: answer = '1' + (X - 1) else: # p 以上が全部作れる answer = '0' * (p - 1) + '1' * (X - p + 1) print(answer) exit() # RE raise