banner

Bài tập: Đảo ngược chuỗi

Đề bài
Mã bài: Reverse
Kiểu chấm: ACM
Dữ liệu nhập: Nhập chuẩn
Kết quả xuất: Xuất chuẩn
Giới hạn thời gian: 1 giây
Được tạo bởi: Trần Đức Doanh
Nội dung:

Write a program to convert each line of string into the reverse string. The reverse string is the string containing the re-arranged characters of the original string in the reverse order, for example:

 “Hello World!” è “!dlroW olleH”

Input

The input contains several lines of string. A line of string does not exceed 100 characters.

Output

For each line, print out the reverse string.

Sample Input

Sample Output

Hello World!

ACM-ICPC VietNam 2016

radar level kayak

LAST LINE

!dlroW olleH

6102 maNteiV CPCI-MCA

kayak level radar

ENIL TSAL


Xem hướng dẫn cách làm bài
Để làm bài thì bạn cần phải đăng nhập