#include<stdio.h>
int main()
{
    int A,B,p=0,i=1,k;
    printf("Enter the value of K:");
    printf("Enter the value of A and B:");
    while(i<=1000)
    {
        {
            p=p+i;
            i=i+1;
        }
    }
    if(i%k==0)
    {
        printf("OK");
    }
    else
    {
        printf("NG");
    }

}