try : while True: a,b = map(int,input().split()) if b==0 or a%b == 0: print("OK!") else: print(a%b) except EOFError: pass