LearnPy Hub
← Arena
EasyRating 800

First and Last Digit

Print the sum of the first and last digits of n.

Input

One integer n (1 ≤ n ≤ 10¹⁸).

Output

The sum.

Sample 1

Input
12345
Output
6

Sample 2

Input
7
Output
14
solution.py
Output appears here
First and Last Digit · Python Arena problem · LearnPy Hub