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

total = k
while True:
    if a<=total<=b:
        print('OK')
        break
    elif total<a:
        total += k
    elif total>b:
        print('NO')
        break