#include <iostream>
int main() { int a,b,c; scanf("%d %d",&a,&b); c=a%b; if(b==0) { printf("OK!"); } else { if(a%b==0) { printf("OK!"); } else { printf("%d",c); } }}