#R1538. HAPPY BIRTHDAY TO CC
HAPPY BIRTHDAY TO CC
说明
Today is the 20th birthday of CC ![]()
![]()
and Yokile wants CC to be delight all day.
Yokile no like CC goods at music and poetry , he’s just solve problem.
So he is going to play a game with CC.
The rules of the game is that there are n snacks, Yokile and CC turns to take some snacks.
Each time one can take a number of stones from 1 up to m.
The one who takes the last snacks is the winner.
CC isn’t good at the game.So she will make some strategic.
If she can get it out one time, get it out else she will take one snack.
Because today is the birthday of CC. Yokile want to make CC happy.
So Yokile’s going to do everything to make CC win.
But Yokile in mathematic is fool.Can you help him?
Of course, CC is a pretty girl so CC first.
输入格式
There are multiple cases.Every case contains two integer in the first line n, m(2 <= n, m <= 1e18)
输出格式
if Yokile can get CC to win.print “Happy birthday to you, hope you been happy all the time”.
Otherwise print “Impossible”
77 8
79 32
79 11
78 8
73 10
83 4
80 32
82 24
69 14
84 20
84 32
89 32
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time
Happy birthday to you, hope you been happy all the time