#Lutece1416. 粗心的谭爷

粗心的谭爷

Migrated from Lutece 1416 粗心的谭爷

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

谭爷喜欢把整数分解质因数,如12=22312=2^2*31024=2101024=2^{10},特别地,1=11=1

有一天谭爷心血来潮,把11nn所有整数的分解形式写在纸上,然后计算它们的和。

但粗心的谭爷把公式中的幂运算的指数看成了连接在底数后面的数字,如把2232^2*3看成了223=6622*3=66,把2102^{10}看成了210=210210=210,因此结果与真实答案大相径庭。

谭爷没有发现这一点,并愚蠢的继续算下去。

坐在谭爷旁边的你看不下去了,写个程序帮谭爷算出他最终得到的结果。

Input

输入一个整数nn1n1071\leq n \leq 10^7

Output

输出谭爷算出来的结果。

Samples

12
188

Note

对于样例

普通人眼中的式子为1+2+3+22+5+23+7+23+32+25+11+223=781+2+3+2^2+5+2*3+7+2^3+3^2+2*5+11+2^2*3=78

谭爷眼中的式子为1+2+3+22+5+23+7+23+32+25+11+223=1881+2+3+22+5+2*3+7+23+32+2*5+11+22*3=188

Resources

2016 UESTC Training for Math