题目链接
a=int(input()) p=input().split() x=int(p[0]) y=int(p[1]) o=x w=0 for i in range(x-y+1): if x%a==0: w=1 x+=1 if w==1: print("OK") else: print("NG")