#K67702. Decoding an Encoded Message

    ID: 32701 Type: Default 1000ms 256MiB

Decoding an Encoded Message

Decoding an Encoded Message

You are given an encoded message string s that follows a particular encoding rule. In the string, any segment that starts with the character X followed by a positive integer n and then any character c, represents that the character c should appear \( n \) times in the decoded output.

For example, the encoded string aX3b should decode to abbb and abX10cX2dxX1y should decode to abccccccccccddxy.

Your task is to implement this decoding logic.

inputFormat

The input consists of a single line string s representing the encoded message. The string may contain several encoded segments that are marked by the letter X followed by a positive integer and a character.

outputFormat

Output the decoded message as a single line string.

## sample
a
a

</p>