S=open(0).read().split() assert(len(S)==2) assert(2<=int(S[0])<=10) assert(0<=int(S[1])<=10**9)