#Lutece1313. Game

Game

Migrated from Lutece 1313 Game

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

Bob is playing a game with nn rounds.

He has ss points initially, and for every round, he will add aa points if he win, or subtract bb points if he lose.

If his score is less than zero after a round, the score will be changed to zero.

Bob is not honest always, so he may use a cheater to get an abnormal score.

Now you are given his final score tt, and you should determine whether Bob cheat in the game.

If it is impossible to get tt points, print CHEATED.

Otherwise, print any possible sequence of game process.

Input

Five integers n,s,t,a,bn,s,t,a,b.

1n1061\leq n\leq 10^6

0s,t1090\leq s, t\leq 10^9

1a,b1091\leq a, b\leq 10^9

Output

If it is impossible to get tt points, print CHEATED.

Otherwise, print a string with nn characters, consisting of O and X. If ithi^{th} character is O, Bob win in ithi^{th} round; if ithi^{th} character is X, Bob lose in ithi^{th} round.

There may be multiple solutions, you can print any one of them.

Samples

4 2 3 3 3
XOXO
2 1 100 2 2
CHEATED

Resources

The 14th UESTC Programming Contest Final