AtCoder Beginner Contest 165
A
We Love Golf
AtCoder
⌀ 0
原题
←B →
翻译中…

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.

翻译中…

样例

Input #1
7
500 600
Output #1
OK
Among the multiples of $7$, for example, $567$ lies between $500$ and $600$.
Input #2
4
5 7
Output #2
NG
No multiple of $4$ lies between $5$ and $7$.
Input #3
1
11 11
Output #3
OK
题目信息
题号
abc165_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。