#include <stdio.h>
int sum (int n){
int i;
int x=0;
int y=n;
int z=n;
for(i=1; i<=n; i++){
x = x + z;
y = y*10;
z = z + y;
}
return x;
}
int main(void) {
int n;
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgc3VtIChpbnQgbil7CglpbnQgaTsKCWludCB4PTA7CglpbnQgeT1uOwoJaW50IHo9bjsKCWZvcihpPTE7IGk8PW47IGkrKyl7CgkJeCA9IHggKyB6OwoJCXkgPSB5KjEwOwoJCXogPSB6ICsgeTsKCX0KCXJldHVybiB4Owp9CgppbnQgbWFpbih2b2lkKSB7CglpbnQgbjsKCXNjYW5mKCIlZCIsJm4pOwoJcHJpbnRmKCIlZFxuIixzdW0obikpOwoJcmV0dXJuIDA7Cn0K