Problem:
 Score: 100 points    Problem Statement  Takahashi the Jumbo will practice golf.  His objective is to get a carry distance that is a multiple of K , while he can only make a carry distance of between A and B (inclusive).  If he can achieve the objective, print OK ; if he cannot, print NG .      Constraints   All values in input are integers.  1 \leq A \leq B \leq 1000  1 \leq K \leq 1000         Input  Input is given from Standard Input in the following format:  K  A  B       Output  If he can achieve the objective, print OK ; if he cannot, print NG .        Sample Input 1 7
500 600      Sample Output 1 OK  Among the multiples of 7 , for example, 567 lies between 500 and 600 .       Sample Input 2 4
5 7      Sample Output 2 NG  No multiple of 4 lies between 5 and 7 .       Sample Input 3 1
11 11      Sample Output 3 OK

Solution (Python):
def task(k, a, b):
    for i in range(a, b + 1):
        if i % k == 0:
            print("OK")
            return

    print("NG")


k = int(input())
a, b = map(int, input().split())
task(k, a, b)

Solution (Python):
k = int(input())
a,b = map(lambda x:int(x),input().split())
for i in range(a,b+1):
  if i%k==0:
    print("OK")
    break
else:
  print("NG")

Solution (Python):
K = int(input())
A,B = map(int,input().split())
a = A//K
b= B//K
if A%K == 0 or B %K == 0:
  print('OK')
elif b-a > 0:
  print('OK')
else:
  print('NG')

Solution (Python):
k = int(input())
a,b = list(map(int, input().split()))
s = "NG"
for i in range(b-a+1):
    if (a+i) % k == 0:
        s = "OK"
        break
print(s)

Solution (Python):
k = int(input())
a, b = map(int, input().split())
print("OK") if sum([i % k == 0 for i in range(a, b+1)]) > 0 else print("NG")

Solution (Python):
k = int(input())
a, b = map(int, input().split())
c = 0
for i in range(a, b+1):
    if i % k == 0:
        c += 1
print("OK" if c > 0 else "NG")

Solution (Python):
K = int(input())
A,B = map(int, input().split())
i = 0
ans = "NG"
while(K*i < B):
  i += 1
  if(A <= K*i and K*i <= B):
    ans = "OK"
    

print(ans)

Solution (Python):
k = int(input())
a, b = map(int, input().split())

flag = False

for i in range(a, b + 1):
    if i % k == 0:
        flag = True
        break

if flag:
    print("OK")
else:
    print("NG")

Solution (Python):
K = int(input())
A, B = map(int, input().split())
y=B//K
print("OK" if y*K>=A else "NG")

Solution (Python):
k = int(input())
a, b = map(int, input().split())

c = b - b%k

if c >= a:
    print("OK")
else :
    print("NG")

Solution (Python):
k = int(input())
a, b = map(int, input().split())
for i in range(a, b+1):
    if i % k == 0:
        print("OK")
        exit(0)
print("NG")

Solution (Python):
K = int(input())
A, B = map(int, input().split())

f = False
for n in range(A, B+1):
  if n % K == 0:
    f = True
    break

if f:
  print('OK')
else:
  print('NG')

Solution (Python):
k=int(input())
a,b=map(int,input().split())
n=(a+k-1)//k
if n*k<=b:print("OK")
else:print("NG")

Solution (Python):
n=int(input())
a,b=map(int,input().split())
for i in range(a,b+1):
  if i%n==0:
    print("OK")
    break
  else:
    continue
else:
  print("NG")

Solution (Python):
K=int(input())
A,B=map(int,input().split())
count=0
for i in range(A,B+1):
  if i%K==0:
    count+=1
if count>=1:
  print("OK")
else:
  print("NG")

Solution (Python):
def main():
  k = int(input())
  min, max = map(int, input().split())
  for i in range(min, max+1):
    if i % k == 0:
      return 'OK'
    
  return 'NG'

print(main())

Solution (Python):
K = int(input())
A, B = map(int, input().split())

for i in range(A, B+1):
  if i % K == 0:
    print('OK')
    exit()

print('NG')

Solution (Python):
K = int(input())
A, B = map(int, input().split())
Flag = False

for i in range(A, B+1):
  if i % K == 0:
    Flag = True
    break

if Flag:
  print("OK")
else:
  print("NG")

Solution (Python):
K=int(input())
A,B=map(int,input().split())
i=0
import sys

while K*i<=B:



    if A<=K*i and K*i<=B:

        print("OK")

        sys.exit()
    else:
        i+=1

print("NG")

Solution (Python):
k=int(input())
a,b=list(map(int,input().split()))
x=0
for i in range(a,b+1):
    if i%k==0:
        x+=1
if x>0:
    print('OK')
else:
    print('NG')

Solution (Python):
from math import gcd
from functools import reduce
from itertools import product

def resolve():
  K = int(input())
  A, B = map(int, input().split(" "))

  result = False
  for i in range(A, B+1):
    if i%K == 0:
      result = True
      break
  print("OK" if result else "NG")

if __name__ == "__main__":
  resolve()

Solution (Python):
K=int(input())
A,B=map(int,input().split())

Ans='NG'

for i in range(A,B+1):
    if i%K==0:
        Ans='OK'
        break
        
print(Ans)

Solution (Python):
def resolve():
    K = int(input())
    A, B = map(int, input().split())

    for i in range(A, B + 1):
        if (i % K) == 0:
            print('OK')
            return

    print('NG')


resolve()

Solution (Python):
K = int(input())
A,B = map(int,input().split())
ans = 'NG'

for i in range(A,B+1):
  if i % K == 0:
    ans = 'OK'
    break

print(ans)

Solution (Python):
k = int(input())
x,y = map(int,input().split())	

if x%k==0:
  print("OK")
elif (x//k+1)*k<=y:
  print("OK")
else:
  print("NG")

Solution (Python):
k=int(input())
lit=str(input()).split(" ")
a=int(lit[0])
b=int(lit[1])

if k == 1:
    print("OK")
    exit()

if a % k == 0:
    print("OK")
    exit()

if b % k == 0:
    print("OK")
    exit()

if a // k == b // k:
    print("NG")
else:
    print("OK")

Solution (Python):
K=int(input())
A,B=map(int, input().split())

while A <= B:
    if A%K ==0:
        yesno = 'OK'
        break
    else:
        A+=1
        yesno = 'NG'
print(yesno)

Solution (Python):
k = int(input())
a, b = map(int, input().split(" "))
ans = "OK" if b // k > a // k or a % k == 0 else "NG"
print(ans)

Solution (Python):
K = int(input())
A,B =map(int,input().split())

for i in range(A,B+1):
  if i % K == 0:
    print('OK')
    exit()

print('NG')
exit()

Solution (Python):
k = int(input())
a, b = map(int, input().split())

flag = False
for num in range(a, b+1):
    if num % k == 0:
        flag = True
        break

if flag:
    print('OK')
else:
    print("NG")

Solution (Python):
K = int(input())
A,B = map(int,input().split())
Flag = False
for i in range(A,B+1):
    if i%K==0:
        Flag = True
if Flag:
    print('OK')
else:
    print('NG')

Solution (Python):
inpl = lambda: list(map(int,input().split()))
K = int(input())
A, B = inpl()
if (A-1)//K == B//K:
    print('NG')
else:
    print('OK')

Solution (Python):
k = int(input())
a, b = map(int, input().split())
 
if ((a // k) + 1) * k <= b or a % k == 0:
  print("OK")
else:
  print("NG")

Solution (Python):
K=int(input())
A,B=map(int,input().split())
for i in range(A,B+1):
    if i%K==0:
        print('OK')
        break
    if i==B:
        print('NG')

Solution (Python):
def input_number():
    return int(input())

def input_1line_list(number_of_input):
    return [input() for i in range(number_of_input)]

def input_1line():
    return map(int, input().split())




def main():
    k = input_number()
    a, b = input_1line()
    for i in range(a, b+1):
        if i % k == 0:
            print('OK')
            exit()
    print('NG')

if __name__ == '__main__':
    main()

Solution (Python):
K = int(input())
A, B = map(int, input().split())

if (A // K) != (B // K):
  print('OK')
elif (A % K) == 0:
  print('OK')
elif (B % K) == 0:
  print('OK')
else:
  print('NG')

Solution (Python):
k=int(input())
a,b=map(int, input().split())

max = int(b/k)

for i in range(1,max+1):
    tmp = k * i
    if a <= tmp and b >= tmp:
        print('OK')
        exit()

print('NG')

Solution (Python):
k = int(input())
a, b = map(int, input().split())

s = 0
i = 0
while True:
    if s >= a:
        break
    s = k * i
    i += 1

if a <= s <= b:
    print('OK')
else:
    print('NG')

Solution (Python):
def main():
    K = int(input())
    A,B = map(int,input().split())
    while A < B + 1:
        if A % K == 0:
            return "OK"
            break
        A += 1
    return "NG"
print(main())

Solution (Python):
k = int(input())
a, b = [int(i) for i in input().split()]

f = False
for i in range(b//k+1):
  if k*i >= a:
    f = True

print("OK" if f else "NG")

Solution (Python):
K = int(input())
A, B = map(int, input().split())

x = 'NG'
for i in range(A, B+1):
    if i % K == 0:
        x = 'OK'

print(x)

Solution (Python):
N = input()
A,B = input().split()
A = int(A)
B = int(B)
N = int(N)

for i in range(A,B+1):
    if i % N == 0 :
        print("OK")
        exit()

print("NG")

Solution (Python):
K=int(input())
A,B=map(int,input().split())
for i in range(A,B+1):
  if i%K==0:
    print("OK")
    exit()
print("NG")

Solution (Python):
import sys

k = int(input())
a,b = list(map(int,input().split()))

for i in range(b-a+1):
    if (i + a) % k == 0:
        print("OK")
        sys.exit()

print("NG")

Solution (Python):
k = int(input())
a, b = map(int, input().split())
ans = "NG"

for i in range(a, b+1):
    if i % k == 0:
        ans = "OK"
print(ans)

Solution (Python):
k=int(input())
a,b=(map(int,input().split()))

ans='NG'

for i in range(a,b+1):
  if i%k==0:
    ans='OK'

print(ans)

Solution (Python):
k = int(input())
a,b = input().split()
a = int(a)
b = int(b)
ok = False
for i in range(a,b+1):

    if i%k == 0:
        print("OK")
        ok = True
        break
if ok == False:
    print("NG")

Solution (Python):
k=int(input())
a,b=map(int,input().split())
x=a//k 
y=b//k 
if y>x or a%k==0 or b%k==0:
    print("OK")
else:
    print("NG")

Solution (Python):
k = int(input())
a, b = map(int, input().split())
ok = False
for i in range(a, b + 1):
  if(i % k == 0):
    ok = True
    break
print("OK" if(ok) else "NG")

Solution (Python):
import math
k=int(input())
a,b=map(int,input().split())
print('OK' if math.floor(b/k)-math.ceil(a/k)>=0 else 'NG')

Solution (Python):
x = int(input())
a,b = map(int,input().split())
c=0
for i in range(a,b+1):
    if i%x==0:
        c=1
        print('OK')
        break
if c==0:
    print('NG')

Solution (Python):
import sys
input = sys.stdin.readline


def readstr():
    return input().strip()


def readint():
    return int(input())


def readnums():
    return map(int, input().split())


def readstrs():
    return input().split()


K = readint()
A, B = readnums()

for i in range(A, B + 1):
    if not i % K:
        print('OK')
        sys.exit()

print('NG')

Solution (Python):
def resolve():
    K = int(input())
    A, B= map(int, input().split()) 

    for i in range(A, B+1):
        if i % K == 0:
            print("OK")
            return

    print("NG")
    return


if __name__ == "__main__":
    resolve()

Solution (Python):
k = int(input())
a,b = map(int,input().split())

for i in range(a,b+1):
    if i%k == 0:
        print("OK")
        quit()

print("NG")

Solution (Python):
k = int(input())
a, b = map(int,input().split())
bool = False
for i in range(a,b+1):
    if i % k == 0:
        bool = True
if bool == True:
    print('OK')
else:
    print('NG')

Solution (Python):
k = int(input())
a, b = map(int, input().split())
flag = 0
for i in range(a, b+1):
    if i%k == 0:
        flag = 1
        break
if flag == 0:
    print('NG')
else:
    print('OK')

Solution (Python):
K = int(input())
A, B = map(int, input().split())

count = 0
for k in range(A, B+1):
    if k % K == 0:
        count += 1
        print("OK")
        break
if count == 0:
    print("NG")

Solution (Python):
K=int(input())
A,B=map(int,input().split())
l=list(i for i in range(A,B+1))
for i in l:
    if i%K==0:
        print("OK")
        exit()
print("NG")

Solution (Python):
K = int(input())
A, B = map(int, input().split())
flag=0
for i in range(A,B+1):
  if i%K==0:
    print('OK')
    flag=1
    break
if flag==0:
	print('NG')

Solution (Python):
K = int(input())
A,B = list(map(int,input().split()))
flag = False
for i in range(A,B+1):
    if i%K == 0:
        flag = True
if flag:
    print('OK')
else:
    print('NG')

Solution (Python):
K = int(input())
A, B = map(int, input().split())

for i in range(A, B+1):
    if i % K == 0:
        print('OK')
        exit(0)
print('NG')

Solution (Python):
K = int(input())
A,B = map(int,input().split())
flag = 0

for i in range(A,B+1):
    if i%K == 0:
        flag = 1
        break

if flag==1:
    print("OK")
else:
    print("NG")

Solution (Python):
K = int(input())
A, B = map(int, input().split())
flag = 0
for i in range(A, B+1):
    if i%K == 0:
        flag = 1
        break
if flag == 0:
    print("NG")
if flag == 1:
    print("OK")

Solution (Python):
n = int(input())
a, b = map(int, input().split())

for i in range(b + 1):
    if i*n >= a and i*n <= b:
        print("OK")
        break
    elif i*n > b:
        print("NG")
        break

Solution (Python):

def resolve():
    K = int(input())
    A, B = map(int, input().split())

    for i in range(A, B+1):
        if i%K==0:
            print("OK")
            return
    print("NG")

if __name__ == "__main__":
    resolve()

Solution (Python):

K=int(input())
A,B=map(int,input().split())



if (A%K == 0) or (B%K == 0):
    print('OK')
elif A//K != B//K:
    print('OK')
else:
    print('NG')

Solution (Python):
K = int(input())
A, B = map(int, input().split())

a = A % K
x = K - a
b = B - A

if A % K == 0:
    ans = 'OK'
else:
    if b >= x:
        ans = 'OK'
    else:
        ans = 'NG'

print(ans)

Solution (Python):
K = int(input())
A,B = map(int,input().split())
x = 0

for i in range(A,B+1):
    if i % K == 0:
        x += 1

if x == 0:
    print('NG')
else:
    print('OK')

Solution (Python):
K = int(input())
A,B = list(map(int,input().split(" ")))
for i in range(A, B+1):
  if i % K == 0:
    print("OK")
    break
else:
  print("NG")

Solution (Python):
K = int(input())
A,B = map(int,input().split())
j=0
for i in range(A,B+1):
    if i%K == 0:
        j +=1
if j > 0:
    print('OK')
else:
    print('NG')

Solution (Python):

K=int(input())
A,B=map(int,input().split())
i=1
ans=0
while B>=K*i:
    if A<=K*i:
        ans=1
        break
    i=i+1
if ans==1:
    print("OK")
else:
    print("NG")

Solution (Python):
k=int(input())
a,b=map(int,input().split(' '))
x=b//k
y=k*x
if y>=a:
    print('OK')
else:
    print('NG')

Solution (Python):
k = int(input())
a,b = map(int,input().split())
for i in range(a,b+1):
    if i%k == 0:
        print ("OK")
        exit ()
print ("NG")

Solution (Python):
K = int(input())
A, B = map(int, input().split())

for i in range(A, B+1):
    if i % K == 0:
        print('OK')
        break
else:
    print('NG')

Solution (Python):
K = int(input())
A, B = map(int,input().split())

if A%K == 0 or K*(A//K+1) <= B:
    print("OK")
else:
    print("NG")

Solution (Python):
k = int(input())
a, b = map(int,input().split())
s = True
for i in range(a,b+1):
    if i%k==0:
        s = False
        break
if s==False:
    print("OK")
else:
    print("NG")

Solution (Python):
k = int(input())
a,b = map(int, input().split())
i=a
while i<=b:
    if i%k==0:
        print("OK")
        exit()
    i+=1
print("NG")

Solution (Python):
K = int(input())
A, B = map(int, input().split())

for i in range(A, B + 1):
    if i % K == 0:
        print('OK')
        break
else:
    print('NG')

Solution (Python):


ipnl = lambda n: [int(input()) for _ in range(n)]
inp = lambda :int(input())
ip = lambda :[int(w) for w in input().split()]
mp = lambda :map(int,input().split())

k = inp()
a,b = mp()

if a%k == 0 or b%k == 0 or b//k - a//k > 0:
    print("OK")
else:
    print("NG")

Solution (Python):
k=int(input())
a,b=map(int,input().split())
ans="NG"
for i in range(a,b+1):
	if i%k==0:
		ans="OK"
		break
print(ans)

Solution (Python):
k = int(input())
a,b = map(int, input().split())
num = a // k
if a % k == 0:
    print("OK")
else:
    if k*(num+1) <= b:
        print("OK")
    else:
        print("NG")

Solution (Python):
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))

K = INT()
A, B = MAP()

ans = False
i = 1
while i <= B:
    if A <= K*i <= B:
        ans = True
        break
    i += 1 

if ans:
    print("OK")
else:
    print("NG")

Solution (Python):
k = int(input())
a, b = map(int, input().split())

now = 1
ans = "NG"

while now * k <= b:
  if a <= now * k <= b:
    ans = "OK"
    break
  else:
    now += 1
    
print(ans)

Solution (Python):
n=int(input())
a,b=(int(i) for i in input().split())
r=0
for i in range(a,b+1):
  if i%n==0:
    r=1
    
if r==1:
  print('OK')
else:
  print('NG')

Solution (Python):
k = int(input())
s = list(map(int, input().split()))
a = s[0]
b = s[1]

kotae = False

for i in range(b - a + 1):
    if (a + i) % k == 0:
        kotae = True
        break

if kotae:
    print("OK")
else:
    print("NG")

Solution (Python):
import sys
k=int(input())
a,b=map(int,input().split())
c=0
while c<=b:
    if c>=a:
        print("OK")
        sys.exit()
    c += k
print("NG")

Solution (Python):
import sys
K = int(input())
A,B = map(int,input().split())

for i in range(0,B-A+1):
    if (A+i)%K==0:
        print("OK")
        sys.exit()
else:
    print("NG")

Solution (Python):
n=int(input())
a,b=[int(x) for x in input().split()]

l=a//n
r=b//n
if l!=r:
	print("OK")
else:
	if a%n==0 or b%n==0:
		print("OK")
	else:
		print("NG")

Solution (Python):
n = int(input())
a,b = map(int,input().split())

if (b//n) >= 1 and ((b//n) > (a//n)):
  print("OK")
elif a%n == 0 or b%n == 0:
  print("OK")
else:
  print("NG")

Solution (Python):
N = int(input())
cnt = 0
a,b = list(map(int,input().split()))
for i in range(a,b+1):
  if i%N == 0:
    print("OK")
    cnt += 1
    break
if cnt == 0:
  print("NG")

Solution (Python):
K = int(input())
A, B = list(map(int, input().split()))

t1 = A // K
t2 = B // K

if t1 < t2 or A % K == 0:
    print("OK")
else:
    print("NG")

Solution (Python):
k = int(input())
a,b = map(int,input().split())
if b//k-(a-1)//k >0:
  print("OK")
else:
  print("NG")

Solution (Python):
k=int(input())
a,b=[int(i) for i in input().split()]
print("OK" if 0<len([i for i in range(a,b+1) if i%k==0]) else "NG")

Solution (Python):
import sys
from io import StringIO
import unittest

def resolve():
    k = int(input())
    a, b = map(int, input().split())

    aa = 0
    while aa <= b:
        aa += k

        if a <= aa <= b:
            print("OK")
            return

    print("NG")
    return

class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)
    def test_入力例_1(self):
        input = """7
500 600"""
        output = """OK"""
        self.assertIO(input, output)
    def test_入力例_2(self):
        input = """4
5 7"""
        output = """NG"""
        self.assertIO(input, output)
    def test_入力例_3(self):
        input = """1
11 11"""
        output = """OK"""
        self.assertIO(input, output)

if __name__ == "__main__":
    
    resolve()

Solution (Python):
K = int(input())

A, B = map(int, input().split())
if (A - 1) // K < B // K:
    print("OK")
else:
    print("NG")

Solution (Python):
k=int(input())
a,b=map(int,input().split())

if a<=(b//k)*k:
  print("OK")
else:
  print("NG")

Solution (Python):
from math import floor
import sys
input = sys.stdin.readline
K=int(input().rstrip('\n'))
A,B = (int(x) for x in input().rstrip('\n').split())
if floor(A/K)<floor(B/K) or A%K==0:
  print('OK')
else:
  print('NG')

Solution (Python):
k = int(input())
a,b = map(int,input().split())
for i in range(a,b+1):
    if i%k == 0:
        print('OK')
        break
    if i == b:
        print('NG')

Solution (Python):
K = int(input())
A, B = map(int, input().split())
ans = "NG"

if A % K == 0:
    ans = "OK"
elif (A // K + 1) * K <= B:
    ans = "OK"

print(ans)

Solution (Python):
k = int(input())
a,b = map(int, input().split())
ans = "NG"
for i in range(a,b+1):
  if not i % k:
    ans = "OK"
    break
print(ans)

Solution (Python):
n = int(input())
l = list(map(int,input().split()))
l2 = [i for i in range(l[0],l[1]+1)]
l3 = list(filter(lambda x: x%n ==0,l2))
if l3:
    print("OK")
else:
    print("NG")

Solution (Python):
n=int(input())

x,y = map(int,input().split())

for i in range(x,y+1):
    if i%n == 0:
        print('OK')
        exit()
print('NG')

Solution (Python):
k = int(input())
a, b = map(int, input().split())

for i in range(a, b+1):
    if i % k == 0:
        print("OK")
        exit()
print("NG")

Solution (Python):
import sys

K = int(input())
A, B = [int(n) for n in input().split()]

for i in range(A, B+1):
    if i % K == 0:
        print('OK')
        sys.exit(0)
print('NG')

Solution (Python):
K = int(input())
x = input().split()
A = int(x[0])
B = int(x[1])

ok = False

for i in range(A,B+1):
  if i % K == 0:
    print("OK")
    ok = True
    break

if not ok:
	print("NG")

Solution (Python):
k = int(input())
a,b = map(int, input().split())

num = a//k 
if k*num == a:
    print('OK')
    quit()
elif k*(num+1) <= b:
    print('OK')
    quit()
else:
    print('NG')

Solution (Python):

k = int(input())
a, b = map(int, input().split())
result = False

dif = b-a
if b-a >= k:
    result = True
else:
    for i in range(a, b+1):
        if i % k == 0:
            result = True

if result:
    print("OK")
else:
    print('NG')

Solution (Python):
K=int(input())
A,B=map(int,input().split())

def judge():
  for x in range(A,B+1):
     if x%K==0:
        return 'OK'
  return 'NG'
  
print(judge())

Solution (Python):
try:
	k=int(input())
	a,b=map(int,input().split())
	for i in range(a,b+1):
		if i%k==0:
			print("OK")
			break
	else:
		print("NG")
except:
	pass

Solution (Python):
k = int(input())
a,b = map(int,input().split())

flg = 0
for i in range(1,1002):
  if k*i >=a and k*i <=b:
    flg = 1
    break

if flg == 0:
  print("NG")
else:
  print("OK")

Solution (Python):
k=int(input())
a,b=map(int,input().split())
if a%k==0 or b%k==0:
    print("OK")
elif a//k==b//k:

    print("NG")
else:
    print("OK")

Solution (Python):
K = int(input())

A, B = map(int, input().split())


flg = False
for i in range(A, B+1):
    if i%K == 0:
        flg = True
        break
    else:
        continue

if flg:
    print('OK')
else:
    print('NG')

Solution (Python):
K = int(input())

A, B = map(int, input().split())

result = "NG"

for i in range(A, B + 1):
    if i % K == 0:
        result = "OK"
        break
    
print(result)

Solution (Python):
K = int(input())
a, b = list(map(int, input().split()))

if ( (a-1) // K - b // K) < 0:
    print("OK")
else:
    print("NG")

Solution (Python):
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    K = int(input())
    A, B = map(int, input().split())

    for i in range(A, B + 1):
        if not i % K:
            print('OK')
            return
    print('NG')


main()

Solution (Python):
k = int(input())
a, b = map(int, input().split())
 
flag = False
for i in range(a, b+1):
    if i % k == 0:
        flag = True
 
print("OK") if flag else print("NG")

Solution (Python):
k = int(input())
a,b = map(int, input().split())
ans = 0
for i in range(a, b+1):
    if i % k == 0:
        ans +=1
        break
if ans > 0:
    print("OK")
else:
    print("NG")

Solution (Python):
k= int(input())
a,b=map(int,input().split())
while a>0:
  a-=k
  b-=k
  
if b>=0:
  print("OK")
else:
  print("NG")

Solution (Python):
K = int(input()) 
A,B = map(int, input().split())
flag = 0
for i in range(A, B+1):
    if i % K == 0:
        flag = 1
        break
    else:
        continue

if flag == 1:
    print("OK")
else:
    print("NG")

Solution (Python):
K = int(input())
A, B = map(int, input().split())
count = 0

for i in range(A,B+1):
    if i % K == 0:
        count = 1
        print("OK")
        break

if count == 0:
    print("NG")

Solution (Python):
K = int(input())
A, B = map(int, input().split())

start = (A // K) * K
while True:
    if A <= start <= B:
        print('OK')
        exit()
    start += K

    if start > B:
        break

print('NG')

Solution (Python):
k = int(input())
a, b = map(int, input().split())

ans = "NG"
for i in range(a, b+1):
    if i % k == 0:
        ans = "OK"
        
print(ans)

Solution (Python):
k = int(input())
a, b = map(int, input().split(' '))
ans = 'NG'
for i in range(a, b + 1):
    if i % k == 0:
        ans = 'OK'
        break
print(ans)

Solution (Python):
K = int(input())
A, B = map(int, input().split())
if (A//K != B//K) or (A//K * K == A) or (B//K * K == B):
    print("OK")
else:
    print("NG")

Solution (Python):
k=int(input())
a,b=map(int,input().split())
for i in range(a,b+1):
    if i % k ==0:
        print('OK')
        break
else:
    print('NG')

Solution (Python):
k = int(input())
n,l=map(int,input().split())
N = n
s=0
while N <= l:
  if N%k ==0 :
    s += 1
  N += 1
if s >=1:
  print("OK")
else:
  print("NG")

Solution (Python):
k = int(input())
a, b = map(int, input().split())

ans = 'NG'
for i in range(0, b + 1, k):
    if a <= i:
        ans = 'OK'
        break

print(ans)

Solution (Python):
K = int(input())
A,B = map(int, input().split())
ans = False
for i in range(A, B+1):
    if i % K == 0:
        ans = True
        break

if ans:
    print('OK')
else:print('NG')

Solution (Python):
import sys
k = int(input())
a, b = map(int, input().split())

for i in range(a, b+1):
  if i % k == 0:
    print('OK')
    sys.exit()
print('NG')

Solution (Python):

k=int(input())
a,b=map(int,input().split())
for i in range(a,b+1):
    if i%k==0:
        print("OK")
        exit()
print("NG")

Solution (Python):
K = int(input())
A, B = map(int,input().split())

is_multiple = False

for i in range(A, B+1):
    if i % K == 0:
        is_multiple = True
        break
        
if is_multiple:
    print("OK")
else:
    print("NG")

Solution (Python):
k=int(input())
a,b=map(int,input().split())

if a % k == 0:
    print("OK")
elif (a + k - (a % k)) <= b:
    print("OK")
else:
    print("NG")

Solution (Python):
K = int(input())
A,B = map(int,input().split())

if B-A>=K:
    print('OK')
else:
    a = A%K
    b = B%K
    if a == 0 or b == 0 or b < a:
        print('OK')
    else:
        print('NG')

Solution (Python):
K = int(input())
(A,B) = map(int,input().split())
flag = 0
for i in range(A,B+1):
    if i % K == 0:
        print("OK")
        flag = 1
        break
if flag == 0:
    print("NG")

Solution (Python):
k=int(input())
a,b=map(int,input().split())
for i in range(a,b+1):
  if(i%k==0):
    print('OK')
    break
else:
  print('NG')

Solution (Python):
k = int(input())
a, b = map(int, input().split())

a_ = a // k
b_ = b // k
if b_ > a_:
    print("OK")
else:
    if a % k == 0 or b % k == 0:
        print("OK")
    else:
        print("NG")

Solution (Python):
k = int(input())
a, b = list(map(int, input().split()))
if a // k == b // k:
  if a % k == 0:
    print("OK")
  else:
    print("NG")
else:
  print("OK")

Solution (Python):
k = int(input())
a,b = map(int, input().split())

n = k*(b//k)
if a <= n and n <= b:
    print("OK")
else:
    print("NG")

Solution (Python):
k = int(input())
a, b = map(int, input().split())
s=0
for i in range(1001):
	if b>=k*i>=a:
		print('OK')
		s+=1
		break

if s==0:
	print('NG')

Solution (Python):
k=int(input())
a,b=map(int,input().split())

r=a%k
if r==0:
  print('OK')
elif b-a+r>=k:
  print('OK')
else:
  print('NG')

Solution (Python):
from math import ceil
k=int(input())
a,b=map(int,input().split())
cnt=ceil(a/k)
if a<=cnt*k<=b:
    print("OK")
else:
    print("NG")

Solution (Python):

k=int(input())
a,b = map(int,input().split())
ans = 0

for i in range(a,b+1):
    if i%k == 0:
        ans = 1

if ans == 1:
    print('OK')
    
else :
    print('NG')

Solution (Python):
def a165(k, a, b):

    ans = "NG"
    count = k
    while count <= 1100:
        if a <= count <= b:
            ans = "OK"
            break
        else:
            count += k

    return ans
def main():
    k = int(input())
    a, b = map(int, input().split())
    print(a165(k, a, b))

if __name__ == '__main__':
    main()

Solution (Python):
k = int(input())
a, b = map(int, input().split())

for i in range(a, b+1):
    if i % k == 0:
        print('OK')
        exit()
print('NG')

Solution (Python):
K = int(input())
A,B = map(int,input().split())
nK = K
while(nK<=1000):
    if(A<=nK<=B):
        print("OK")
        exit()
    nK += K
print("NG")

Solution (Python):
K = int(input())
A,B = map(int,input().split())

flag = 0
for i in range(A,B+1):
    if i % K == 0:
        flag = 1
        break
if flag == 1:
    print("OK")
else:
    print("NG")

Solution (Python):
K = int(input())
A,B=map(int,(input().split()))
ans='NG'
for i in range(A,B+1):
    if float(i)%K==0:
        ans='OK'

print(ans)

Solution (Python):


K=int(input())
A,B =map(int,input().split())
ans = K
i = 1
while True:
    if(ans >=A and ans<=B):
        print("OK")
        break
    if(ans > B):
        print("NG")
        break
    ans = K *i
    i += 1

Solution (Python):
K = int(input())
A,B = map(int,input().split())
ans = 0
for i in range(A,B+1):
	if  i % K == 0:
		ans += 1
if ans >= 1:
	print("OK")
else:
	print("NG")

Solution (Python):
k = int(input())
a,b = map(int, input().split())
n=0
result=0
while k*n<b:
    n=n+1
    if k*n>=a and k*n<=b:
        result=1
if result==1:
    print("OK")
else:
    print("NG")

Solution (Python):
K = int(input())
A,B = [int(i) for i in input().split()]

if A//K < B//K:
    print("OK")
    exit()

if A%K == 0:
    print("OK")
else:
    print("NG")

Solution (Python):
k = int(input())
a, b = map(int, input().split())

aa = a//k
bb = b//k


if a%k == 0 or b%k == 0:
    print("OK")
elif aa == bb:
    print("NG")
else:
    print("OK")

Solution (Python):
import sys
k = int(input())
a, b = list(map(int, input().split()))
for i in range(a, b + 1):
	if i % k == 0:
		print("OK")
		sys.exit()
print("NG")

Solution (Python):
import math
k= int(input())
a,b=map(int,input().split())
print("OK" if math.ceil(a/k)<=math.floor(b/k) else "NG")

Solution (Python):
def main():
    a = int(input())
    b,c = map(int,input().split())

    n = a
    i = 1
    while n <= c:
        n = a* i
        if n>=b and n <= c:
            print('OK')
            return
        i+=1
    print('NG')
if __name__=='__main__':
    main()

Solution (Python):
k = int(input())
a,b = list(map(int,input().split()))



flug=0
for i in range(a,b+1):
    if i%k==0:
        print("OK")
        flug=1
        break

if flug==0:
    print("NG")

Solution (Python):
k = int(input())
a,b = map(int,input().split())


for i in range(a,b+1):
    if(i % k ==0):
        print("OK")
        exit()

print("NG")

Solution (Python):
K = int(input())

A,B = map(int,input().split())

ans = 'NG'

if B-A >= K-1:
  ans = 'OK'
else:
  for i in range(A,B+1):
    if i%K == 0:
      ans = 'OK'

print(ans)

Solution (Python):
K = int( input().strip() )  
A , B   = map ( int , input().strip().split(" ") ) ;
X = B // K ;
print ( "OK" if X * K >= A else "NG"  ) ;

Solution (Python):
K = int(input())
A , B = list(map(int,input().split()))
cnt = 0
for i in range(A,B+1):
    if i % K == 0:
        cnt += 1
if cnt == 0:
    print('NG')
else:
    print('OK')

Solution (Python):
K = int(input())
A, B = map(int, input().split())

for i in range(A,B+1):
    if 0 == i % K:
        print("OK")
        break
    elif i == B:
        print("NG")
        break

Solution (Python):
K = int(input())
A, B = map(int, input().split())
ans = 'NG'
for i in range(A, B + 1):
    if i % K == 0:
        ans ='OK'
        break

print(ans)