n,k=map(int,input().split()) import math if k==0 or n