n,k = map(int,input().split()) if k != 1: print(1<