#C13827. Hexadecimal String Decoder

    ID: 43408 Type: Default 1000ms 256MiB

Hexadecimal String Decoder

Hexadecimal String Decoder

The task is to decode a given hexadecimal string that represents a sequence of UTF-8 encoded bytes. Each byte in the input is prefixed by a literal \x. Your task is to remove these prefixes, convert the hexadecimal values into bytes, and then decode the resulting byte sequence into its corresponding UTF-8 string.

You should read the input from stdin and output the decoded string to stdout. The input may be empty, and if so, the output should be an empty string.

For example, given the input:

\x68\x65\x6c\x6c\x6f\x20\x77\x6f\x72\x6c\x64\x21

The output should be:

hello world!

inputFormat

The input consists of a single line from stdin containing a hexadecimal string. Each byte is prefixed by the literal characters \x. The string may be empty.

outputFormat

Output the decoded UTF-8 string to stdout.

## sample
\x68\x65\x6c\x6c\x6f\x20\x77\x6f\x72\x6c\x64\x21
hello world!