PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#GL0000169. Tiệc Iftar (Iftar Party)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Tiệc Iftar (Iftar Party)

Ifter Party

Source: LightOJ

Version: Phuoc Hung OJ Extended

Problem Statement

An Iftar gathering starts with PP snacks for CC participants. Each participant consumes exactly QQ snacks, and LL snacks remain. The number eaten by each participant is strictly larger than the remaining number: Q>LQ>L. Both CC and QQ are positive integers. Find all possible values of QQ in increasing order, or print impossible if none exists.

Input

One line contains two integers P,LP,L.

Output

Print all valid QQ values in increasing order on one line separated by spaces; print impossible if there is no valid value.

Subtasks

  • Subtask 1 (20 points): 0≤L<P≤1040 \le L < P \le 10^4.
  • Subtask 2 (30 points): 0≤L<P≤1070 \le L < P \le 10^7.
  • Subtask 3 (50 points): 0≤L<P<2310 \le L < P < 2^{31}.

Examples

Input

300 98

Output

101 202

Explanation

The total number consumed is 300−98=202300-98=202, so C⋅Q=202C\cdot Q=202. The positive divisors are 1,2,101,2021,2,101,202, and only 101,202101,202 are greater than 9898, corresponding to C=2C=2 or C=1C=1.