#include <stdio.h>
int sum(int n){
int m=0,l;
l=n;
for(int i=0;i<n;i++){
m+=l;
l=l*10+l;
}
return m;
}
int main(void) {
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgc3VtKGludCBuKXsKaW50IG09MCxsOwpsPW47CmZvcihpbnQgaT0wO2k8bjtpKyspewptKz1sOwpsPWwqMTArbDsKfQpyZXR1cm4gbTsKfQppbnQgbWFpbih2b2lkKSB7CglwcmludGYoIiVkXG4iLHN1bSgzKSk7CglyZXR1cm4gMDsKfQo=