Codeforces Round 425 (Div. 2)
A
Sasha and Sticks
Codeforces
800
原题
←B →
翻译中…

It's one more school day now. Sasha doesn't like classes and is always bored at them. So, each day he invents some game and plays in it alone or with friends.

翻译中…

Today he invented one simple game to play with Lena, with whom he shares a desk. The rules are simple. Sasha draws $*n*$ sticks in a row. After that the players take turns crossing out exactly $*k*$ sticks from left or right in each turn. Sasha moves first, because he is the inventor of the game. If there are less than $*k*$ sticks on the paper before some turn, the game ends. Sasha wins if he makes strictly more moves than Lena. Sasha wants to know the result of the game before playing, you are to help him.

翻译中…

Input

翻译中…

The first line contains two integers $*n*$ and $*k*$ ($1 ≤ *n*, *k* ≤ 10^{18}$, $*k* ≤ *n*$) — the number of sticks drawn by Sasha and the number $*k*$ — the number of sticks to be crossed out on each turn.

翻译中…

Output

翻译中…

If Sasha wins, print "YES" (without quotes), otherwise print "NO" (without quotes).

翻译中…

You can print each letter in arbitrary case (upper of lower).

翻译中…

Note

翻译中…

In the first example Sasha crosses out $1$ stick, and then there are no sticks. So Lena can't make a move, and Sasha wins.

翻译中…

In the second example Sasha crosses out $4$ sticks, then Lena crosses out $4$ sticks, and after that there are only $2$ sticks left. Sasha can't make a move. The players make equal number of moves, so Sasha doesn't win.

翻译中…

样例

Input #1
1 1
Output #1
YES
InputCopy OutputCopy
Input #2
10 4
Output #2
NO
InputCopy OutputCopy
题目信息
题号
832A
时间限制
2 s
内存限制
256 MB
标签
博弈论
数学

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