#C12855. Reverse a String

    ID: 42328 Type: Default 1000ms 256MiB

Reverse a String

Reverse a String

Your task is to write a program that reads a string from standard input and prints the reversed string to standard output.

The problem requires you to reverse the order of characters in the input string. For a given string \( s \), you should output the string \( s' \) such that if \( s = s_0s_1...s_{n-1} \), then \( s' = s_{n-1}...s_1s_0 \).

Input will be given through standard input, and output must be printed to standard output.

inputFormat

The input consists of a single line containing a string \( s \). The string can be empty or contain spaces and various characters.

outputFormat

Output the reversed version of the input string on a single line.

## sample
hello
olleh