eolymp
bolt
Try our new interface for solving problems
Problems

The sum of the first and the last digits in the number

The sum of the first and the last digits in the number

Find the sum of the first and the last digit of an integer. \InputFile One $32$-bit number $n$ that consists of at least two digits. The number $n$ can be positive or negative. \OutputFile Print the sum of the first and the last digit of $n$.
Time limit 1 second
Memory limit 128 MiB
Input example #1
2345
Output example #1
7