Competitions

# Week 1: November 2 – 8. Introduction to C language. Part 1

# Digits permutation in 3-digit integer

In the given three-digit positive integer swap the first and the last digits.

#### Input

One three-digit positive integer **n** (**100** ≤ **n** ≤ **999**).

#### Output

Print the number obtained by exchange of the first and the last digits.

Input example #1

198

Output example #1

891