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.

Input

  A string represents Yakuman's name.

Output

  Output one line represent the tiles, each tile is separated by a space

ExamplesInput
Blessing of Heaven
Output
1m 2m 3m 4p 4p 4p 5s 6s 7s 1z 1z 1z 2z 2z
Input
Blessing of Earth
Output
1m 2m 3m 4p 4p 4p 5s 6s 7s 1z 1z 1z 2z 2z

加入题单

上一题 下一题 算法标签: