#K63232. Reverse a String

    ID: 31708 Type: Default 1000ms 256MiB

Reverse a String

Reverse a String

Given a single-line input string, compute and output its reverse.

The task is simple: you need to reverse the order of characters in the string. For example, if the input is "hello", the output should be "olleh".

This problem tests basic string manipulation and familiarity with input/output operations in various programming languages.

Note: Ensure your program reads input from stdin and outputs to stdout.

inputFormat

The input consists of a single line containing a string. The string may be empty and can include spaces and other characters.

outputFormat

Print a single line containing the reversed string.## sample

hello
olleh