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
Output appears hereOne integer n (1 ≤ n ≤ 10¹⁸).
The sum.
12345
6
7
14
Output appears here