410469: GYM104024 A Saki
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
A. Sakitime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
Friedchicken likes playing Majsoul and has strong luck. So it is easy for him to get Yakuman which is a difficult thing in Majsoul. He wants more friends to play Majsoul with him,so he try to teach you.
First, you need to know the Tile's types.
For example 1m means Ii man, 1z means Ton.
There some special tiles hands called Yakuman, such as:
Now, Friedchicken wants to test your Majsoul's level.He will given you some Yakuman's name, you should print out the tiles from left to right according to the image above.
InputA string represents Yakuman's name.
OutputOutput one line represent the tiles, each tile is separated by a space
ExamplesInputBlessing of HeavenOutput
1m 2m 3m 4p 4p 4p 5s 6s 7s 1z 1z 1z 2z 2zInput
Blessing of EarthOutput
1m 2m 3m 4p 4p 4p 5s 6s 7s 1z 1z 1z 2z 2z