eolymp
Competitions

PP1 Week 1 Introduction Part 2

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