Nordic Combined
Nordic combined is a sport that includes ski jumping followed by a cross-country ski race. Athletes first perform ski jumps and then compete in a ski race, starting with a time delay based on their ski jump performance. The delay is calculated by multiplying the points deficit from the leader by 4. The athlete who crosses the finish line first wins the competition.
In Vancouver, some found this delay calculation formula made the competition too predictable. To address this, a new delay calculation method was proposed for the Sochi Olympics. Here's how it works: Let N represent the points deficit. The number N undergoes a cyclic shift K times, where K is the number of digits in N. A cyclic shift involves moving the last digit of the number to the front. Leading zeros are allowed, ensuring the number remains K digits long. The delay is the sum of all numbers obtained from these cyclic shifts.
Your task is to write a program that calculates this delay.
Input
The input consists of a single line containing an integer N (1 ≤ N ≤ 10^100000).
Output
Output a single number, which is the calculated delay.