e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

Sum of digits

Sum of digits

Find the sum of the first and the last digit in four-digit positive integer.

Input

One four-digit positive integer.

Output

Print the sum of the first and the last digit.

Time limit 1 second
Memory limit 122.17 MiB
Input example #1
1235
Output example #1
6