import java.util.*;class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int n=s.nextInt(),m=s.nextInt();System.out.print((s.nextInt()/n*n)>=m?"OK":"NG");}} import java.util.*; util.* java class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int n=s.nextInt(),m=s.nextInt();System.out.print((s.nextInt()/n*n)>=m?"OK":"NG");}} Main public static void main(String[]a){Scanner s=new Scanner(System.in);int n=s.nextInt(),m=s.nextInt();System.out.print((s.nextInt()/n*n)>=m?"OK":"NG");} main {Scanner s=new Scanner(System.in);int n=s.nextInt(),m=s.nextInt();System.out.print((s.nextInt()/n*n)>=m?"OK":"NG");} Scanner s=new Scanner(System.in); s new Scanner(System.in) int n=s.nextInt() n s.nextInt() s.nextInt s m=s.nextInt(); m s.nextInt() s.nextInt s System.out.print((s.nextInt()/n*n)>=m?"OK":"NG") System.out.print System.out System System.out (s.nextInt()/n*n)>=m?"OK":"NG" (s.nextInt()/n*n)>=m (s.nextInt()/n*n) s.nextInt()/n s.nextInt() s.nextInt s n n m "OK" "NG" String[]a a
import java.util.*;class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int n=s.nextInt(),m=s.nextInt();System.out.print((s.nextInt()/n*n)>=m?"OK":"NG");}}