#32320: python 一行


yuxuan0912 (李毓萱Laura)


(lambda a:print(a[0]%a[1] if a[1]!=0!=(a[0]%a[1]) else "OK!"))(list(map(int,input().split())))