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):
k = int(input())
a, b = list(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())
a-=1

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

Solution (Python):
import sys
sys.setrecursionlimit(10**9)


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):
k = int(input())
n, m = map(int, input().split())
cnt = 0
for i in range(n, m+1):
    if i % k == 0:
        cnt += 1

print('OK' if cnt > 0 else 'NG')

Solution (Python):
K = int(input())
A,B= list(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())

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

Solution (Python):
import sys
sys.setrecursionlimit(700000)

def s_in():
    return input()

def n_in():
    return int(input())

def l_in():
    return list(map(int, input().split()))

def print_l(l):
    print(' '.join(map(str, l)))

class Interval():
    def __init__(self, li):
        self.li = li
        self.n = len(li)
        self.sum_li = [li[0]]
        for i in range(1, self.n):
            self.sum_li.append(self.sum_li[i-1] + li[i])

    def sum(self, a, b=None):
        if b is None:
            return self.sum(0, a)

        res = self.sum_li[min(self.n-1, b-1)]
        if a > 0:
            res -= self.sum_li[a-1]
        return res

k=n_in()
a,b=l_in()

for i in range(a,b+1):
    if i%k == 0:
        print('OK')
        exit()
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())

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

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

Solution (Python):
K=int(input())
A,B=map(int,input().split())
c=B//K
if K*c>=A and K*c<=B:
    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):
n = int(input())
l = [int(x) for x in input().split(" ")]
b = False
for i in range(l[0],l[1]+1):
  if i%n == 0:
    b = True
if b == True:
  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())


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

if ans == 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 i % K == 0:
        print("OK")
        exit()
        
print("NG")

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

Solution (Python):
def main():
    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')


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):
import sys
from io import StringIO
import unittest

def resolve():
    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')

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):
import sys

def get_ints(): return map(int, sys.stdin.readline().strip().split())
def get_array(): return list(map(int, sys.stdin.readline().strip().split()))
def input(): return sys.stdin.readline().strip()

k = int(input())
a, b = get_ints()

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())
N, M = map(int, input().split())
ans = "NG"
for i in range(N, M+1):
    if i % K == 0:
        ans = "OK"
        break
print(ans)

Solution (Python):
K = int(input())
M,N = map(int,input().rstrip().split(" "))
ans = False
for i in range(M,N + 1):
    if i % K == 0:
        ans = True
if(ans):
    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
        break
if flag:
    print("OK")
else:
    print("NG")

Solution (Python):
K=int(input())
A,B=[int(s) for s in input().split()]
i=A
while(i<=B):
  if i%K==0:
    print('OK')
    break
  i+=1
else:
  print('NG')

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

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

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

Solution (Python):
def main():
    K=int(input())
    A,B=map(int,input().split())
    
    for i in range(1,1001):
        if A<=K*i and K*i<=B:
            print("OK")
            exit()
    
    print("NG")
    exit()

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 = [int(v) for v in input().split()]
flag = False

for i in range(A,B+1):
    if i % K == 0:
        flag = True
        break
print("OK" if flag else "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')
        quit()
print('NG')

Solution (Python):

''':'
docker run --rm -it -v $(cd $(dirname $0) && pwd):/vo:ro pypy:3-2.4.0 \
   /bin/bash -c "pypy3 /vo/$(basename $0) < /vo/input.txt"
exit $?
'''
import sys


def _i(): return int(sys.stdin.readline().strip())
def _ia(): return map(int, sys.stdin.readline().strip().split())


def main():
    k = _i()
    a, b = _ia()
    for i in range(a, b+1):
        if i % k ==0:
            return "OK"
    return "NG"

if __name__ == "__main__":
    print(main())

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

flag = False
for num in range(A, B+1):
  if num % K == 0:
    flag = True
if flag:
  print('OK')
else:
  print('NG')

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

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

Solution (Python):

import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1

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')
        exit()

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())
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):
import sys
sys.setrecursionlimit(1000000000)
import math
from math import gcd
def lcm(a, b): return a * b // gcd(a, b)
from itertools import count, permutations, chain
from functools import lru_cache
from collections import deque, defaultdict
from pprint import pprint
ii = lambda: int(input())
mis = lambda: map(int, input().split())
lmis = lambda: list(mis())
INF = float('inf')
N1097 = 10**9 + 7

def meg(f, ok, ng):
    while abs(ok-ng)>1:
        mid = (ok+ng)//2
        if f(mid):
            ok=mid
        else:
            ng=mid
    return ok

def get_inv(n, modp):
    return pow(n, modp-2, modp)

def factorials_list(n, modp):    
    fs = [1]
    for i in range(1, n+1):
        fs.append(fs[-1] * i % modp)
    return fs

def invs_list(n, fs, modp):     
    invs = [get_inv(fs[-1], modp)]
    for i in range(n, 1-1, -1):
        invs.append(invs[-1] * i % modp)
    invs.reverse()
    return invs

def comb(n, k, modp):
    num = 1
    for i in range(n, n-k, -1):
        num = num * i % modp
    den = 1
    for i in range(2, k+1):
        den = den * i % modp
    return num * get_inv(den, modp) % modp

def comb_from_list(n, k, modp, fs, invs):   
    return fs[n] * invs[n-k] * invs[k] % modp



class UnionFindEx:
    def __init__(self, size):
        
        self.roots = [-1] * size
    def getRootID(self, i):
        r = self.roots[i]
        if r < 0:   
            return i
        else:
            r = self.getRootID(r)
            self.roots[i] = r
            return r
    def getGroupSize(self, i):
        return -self.roots[self.getRootID(i)]
    def connect(self, i, j):
        r1, r2 = self.getRootID(i), self.getRootID(j)
        if r1 == r2:
            return False
        if self.getGroupSize(r1) < self.getGroupSize(r2):
            r1, r2 = r2, r1
        self.roots[r1] += self.roots[r2]    
        self.roots[r2] = r1
        return True

Yes = 'Yes'
No = 'No'


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

main()

Solution (Python):
import sys
k = int(sys.stdin.readline())
a, b = map(int, sys.stdin.readline().split())
flag = False
while a <= b:
  if a % k == 0:
    flag = True
    break
  a += 1
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')
    break
else:
  print('NG')

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

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

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
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()
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")
        exit()
        
print("NG")

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

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

Solution (Python):
def main():
    k = int(input())
    a, b = input_list()

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


def input_list():
    return list(map(int, input().split()))


if __name__ == '__main__':
    main()

Solution (Python):

def main():
    N = int(input())
    A, B = map(int, input().split())

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

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')
        break
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):
def main():
    k = int(input())
    a, b = map(int,input().split())
    r = 'NG'
    for i in range(a, b + 1):
        if i % k == 0:
            r = 'OK'
    print(r)

if __name__ == '__main__':
    main()

Solution (Python):
t = int(input())
x,y = map(int,input().strip().split())
f = 0
for i in range(x,y+1):
    if i%t==0:
        f = 1
        break
if f:
    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())
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())
for i in range(a, b+1):
    if i % k == 0:
        print('OK')
        exit()
print('NG')

Solution (Python):
k=int(input())
import sys
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(1001):
    if A <= i * K <= B:
        print('OK')
        exit()
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())
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())
flag = False
for i in range(a,b+1):
    if i%k == 0:
        flag = True
if flag:
    print('OK')
else:
    print('NG')

Solution (Python):
import sys,os
from collections import defaultdict, deque
from math import ceil, floor
if sys.version_info[1] >= 5:
    from math import gcd
else:
    from fractions import gcd
sys.setrecursionlimit(10**6)
write = sys.stdout.write
dbg = (lambda *something: print(*something)) if 'TERM_PROGRAM' in os.environ else lambda *x: 0
def main(given=sys.stdin.readline):
    input = lambda: given().rstrip()
    LMIIS = lambda: list(map(int,input().split()))
    II = lambda: int(input())
    MOD = 10**9+7

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

if __name__ == '__main__':
    main()

Solution (Python):
k = int(input())
a,b = [int(x) for x in 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())
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())
for i in range(A, B + 1):
    if i % K == 0:
        print("OK")
        break
else:
    print("NG")

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

if __name__ == '__main__':
    main()

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
print("OK" if ans ==1 else "NG")

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

Solution (Python):




import sys
input = sys.stdin.readline



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

    res = 'NG'

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

    print(res)



main()

Solution (Python):
from sys import stdin
K = int(stdin.readline().rstrip())
A,B = [int(x) for x in stdin.readline().rstrip().split()]
f = False
for i in range(A,B+1):
    if i % K == 0:
        f = True
if f:
    print("OK")
else:
    print("NG")

Solution (Python):
import sys
def input():
    return sys.stdin.readline()[:-1]
N = int(input())
A,B = map(int,input().split(' '))

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

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

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


def main():
    k = int(input())
    a, b = map(int, input().split())
    res = solve(k, a, b)
    print(res)


def test():
    assert solve(7, 500, 600) == "OK"
    assert solve(4, 5, 7) == "NG"
    assert solve(1, 11, 11) == "OK"


if __name__ == "__main__":
    test()
    main()

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

while k <= b:
    if a <= k <= b:
        print('OK')
        break

    k += o

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):
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines

def main():
    K = int(readline())
    A,B = map(int, readline().split())

    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())
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())
for i in range(A,B+1):
    if i%K==0:
        print("OK")
        break
else:
    print("NG")

Solution (Python):
import sys

if __name__ == '__main__':
    k = int(sys.stdin.readline())
    a, b = list(map(lambda x: int(x), sys.stdin.readline().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())
flg=False
for i in range(A, B+1):
    if i%K==0:
        flg=True
        break
ans = 'OK' if flg else 'NG'
print(ans)

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

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

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 = map(int, input().split())
f = False
for i in range(A, B + 1):
    if i % K == 0:
        f = True
        break
if f:
    print("OK")
else:
    print("NG")

Solution (Python):
import sys
import math
import bisect






INF = sys.maxsize
MOD = 10 ** 9 + 7




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):
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())

i=1
while k*i<=b:
    if a<=k*i and k*i<=b:
        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")
        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):
n = int(input())
a,b = map(int,input().split())

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 m in range(1, 1001):
  if A<=m*K and m*K<=B:
    print('OK')
    exit()
print('NG')

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')
        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")
        quit()
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())


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

print("NG")

Solution (Python):
"""def power(x, y): 
    res = 1
    x=x
    while (y > 0): 
        if ((y & 1) == 1) : 
            res = (res * x) 
        y = y >> 1
        x = (x * x)
    return res""" 
"""def fact(n):
    if(n==0):
        return 1
    if(n==1):
        return 1
    return fact(n-1)+fact(n-2)"""
 
import math

 
 


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

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

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

if u == 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 i % k == 0:
        print("OK")
        break
else:
    print("NG")

Solution (Python):
from math import gcd

from math import factorial as f

from math import ceil,floor,sqrt


import bisect
import re
import heapq


from copy import deepcopy
import itertools

from sys import exit

ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

yes = "Yes"
no = "No"

def main():
    k = ii()
    a,b = mi()
    tmp = 0
    while tmp < b+1:
        if tmp>=a:
            print('OK')
            exit()
        tmp+=k

    print('NG')




main()

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())

for i in range(B+1):
    if A <= K*i <= B:
        print("OK")
        quit()

print("NG")

Solution (Python):
k = int(input())
a,b = map(int, input().split())
i = (a-1)//k
j = b//k
if j-i >= 1:
    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")
    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())

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

Solution (Python):



def solve(*args: str) -> str:
    k = int(args[0])
    a, b = map(int, args[1].split())

    return 'OK' if -(-a//k)*k <= b else 'NG'


if __name__ == "__main__":
    print(solve(*(open(0).read().splitlines())))

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

Solution (Python):
import sys
import heapq
import re
from itertools import permutations
from bisect import bisect_left, bisect_right
from collections import Counter, deque
from math import factorial, sqrt, ceil, gcd
from functools import lru_cache, reduce
INF = 1 << 60
MOD = 1000000007
sys.setrecursionlimit(10 ** 7)


class UnionFind():
    def __init__(self, n):
        self.n = n
        self.parents = [-1] * n

    def find(self, x):
        if self.parents[x] < 0:
            return x
        else:
            self.parents[x] = self.find(self.parents[x])
            return self.parents[x]

    def union(self, x, y):
        x = self.find(x)
        y = self.find(y)

        if x == y:
            return

        if self.parents[x] > self.parents[y]:
            x, y = y, x

        self.parents[x] += self.parents[y]
        self.parents[y] = x

    def size(self, x):
        return -self.parents[self.find(x)]

    def same(self, x, y):
        return self.find(x) == self.find(y)

    def members(self, x):
        root = self.find(x)
        return [i for i in range(self.n) if self.find(i) == root]

    def roots(self):
        return [i for i, x in enumerate(self.parents) if x < 0]

    def group_count(self):
        return len(self.roots())

    def all_group_members(self):
        return {r: self.members(r) for r in self.roots()}

    def __str__(self):
        return '\n'.join('{}: {}'.format(r, self.members(r)) for r in self.roots())


def dijkstra_heap(s, edge, n):
    
    d = [10**20] * n
    used = [True] * n 
    d[s] = 0
    used[s] = False
    edgelist = []
    for a,b in edge[s]:
        heapq.heappush(edgelist,a*(10**6)+b)
    while len(edgelist):
        minedge = heapq.heappop(edgelist)
        
        if not used[minedge%(10**6)]:
            continue
        v = minedge%(10**6)
        d[v] = minedge//(10**6)
        used[v] = False
        for e in edge[v]:
            if used[e[1]]:
                heapq.heappush(edgelist,(e[0]+d[v])*(10**6)+e[1])
    return d


def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])

    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])

    return arr


def lcm(x, y):
    return (x * y) // gcd(x, y)


def lcm_list(numbers):
    return reduce(lcm, numbers, 1)


def gcd_list(numbers):
    return reduce(gcd, numbers)


def is_prime(n):
    if n <= 1:
        return False
    p = 2
    while True:
        if p ** 2 > n:
            break
        if n % p == 0:
            return False
        p += 1
    return True



def eratosthenes(limit):
    A = [i for i in range(2, limit+1)]
    P = []

    while True:
        prime = min(A)
        
        if prime > sqrt(limit):
            break
            
        P.append(prime)
            
        i = 0
        while i < len(A):
            if A[i] % prime == 0:
                A.pop(i)
                continue
            i += 1
            
    for a in A:
        P.append(a)
            
    return P


def permutation_with_duplicates(L):

    if L == []:
        return [[]]

    else:
        ret = []

        
        S = sorted(set(L))

        for i in S:

            data = L[:]
            data.remove(i)

            for j in permutation_with_duplicates(data):
                ret.append([i] + j)

        return ret



k = int(input())
a, b = map(int, input().split())
yes = False
for i in range(a, b + 1):
    if i % k == 0:
        yes = True
        break
if yes:
    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")
    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):
    flag = 1
    
if(flag == 1):
  print('OK')
else:
  print('NG')

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

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


if __name__ == '__main__':
    print(main())

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

n, m = [int(x) for x in input().split()]

for i in range(n, m+1):
  if i%k == 0:
    print('OK')
    quit()

print("NG")

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

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
    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")

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")
        import sys
        sys.exit()
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

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

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):
def main():
    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")


if __name__ == '__main__':
    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
        break
if flag == True:
    print("OK")
else:
    print("NG")

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

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

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

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

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

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

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



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