#35097: 我女友叫我寫的


10955052@st.chjhs.tp.edu.tw (07段律言)


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