#t213. 反向输出一个三位数

反向输出一个三位数

Reverse a Three-Digit Number

Problem Description

Reverse a three-digit number and output it.

Input Format

A three-digit number nn.

Output Format

Output nn reversed.

Sample Input

100

Sample Output

001

Hint

  • Two ways: split the digits (% 10, / 10, / 100), or treat the input as a string and print it backwards.
  • Before choosing a way, look at the sample first: 100 → 001 — the leading zeros must be kept — which way keeps leading zeros naturally?