N, K = map(int, input().split()) if K == 1: print((1<