#Q243. 「一本通 6.7 例 1」取石子游戏 1

「一本通 6.7 例 1」取石子游戏 1

Description

There is an interesting game played as follows:

Players: 22;

Props: NN stones;

Rules:

  1. Players take turns to remove stones;
  2. Each player can take any number of stones between 11 and KK (inclusive) in each turn;
  3. The game ends when all stones are taken;
  4. The player who takes the last stone wins.

Assuming both players are very smart, who will win the game?

Input Format

The input consists of a single line with two integers, NN and KK.

Output Format

Output a single integer: 11 if the first player wins, or 22 if the second player wins.

Sample 1

23 3

1

Constraints & Hints

For all test cases, 1N105,1KN1 \le N \le 10^5, 1\le K \le N.