Hide

Problem I
Trailing Digits

Languages en is

You are given a positive integer n and should print the last ten digits of 11+22+33++nn.

Input

The first and only line of input contains a positive integer 10n107.

Output

Print the last ten digits of 11+22+33++nn. Do not print it with extra leading zeroes, even though the program might then print less than ten digits.

Sample Input 1 Sample Output 1
1000
9110846700
Hide

Please log in to submit a solution to this problem

Log in