Problem list
Log in
#r03347 · Online Judge > GoldOJ

Reverse a String

Bronze III 2.0 s 1024 MB

Given one line of text (which may contain spaces), print it reversed. Spaces are treated as ordinary characters.

Input

One line of length $1$ to $1000$; the first and last characters are not spaces.

Output

Print the reversed line.

Example 1

Input
hello world
Output
dlrow olleh
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code