eolymp
Problems

Sum of digits

Sum of digits

Time limit 1 second
Memory limit 122 MiB

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

Input data

One four-digit positive integer.

Output data

Print the sum of the first and the last digit.

Examples

Input example #1
1235
Output example #1
6