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.
Input example #1
1235
Output example #1
6