Problem1642--exam-6.3-sum

1642: exam-6.3-sum

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 203  Solved: 89
[Submit] [Status] [Web Board] [Creator:]

Description

Find the value of Sn = d+dd+ddd+…+dd…dd (with n d), where d is a number. Find 2 + 22 + 222 + 2222 + 22222 (n = 5), the numbers d and n are input by the keyboard, and find the corresponding sum.

Input

输入一个整数n

Output

输出相应的和,输出后换行

Sample Input Copy

2
5

Sample Output Copy

24690

Source/Category

134