#include <stdio.h>
int main()
{
int a,b,c,n;
c=0,b=0;
scanf ("%d%d",&a,&n);
for (;n>0;n--)
{
b=b*10+a;
c=c+b;
}
printf ("s=%d\n",c);
}
//欢迎一起探讨~
#include <stdio.h>
int main()
{
int a,b,c,n;
c=0,b=0;
scanf ("%d%d",&a,&n);
for (;n>0;n--)
{
b=b*10+a;
c=c+b;
}
printf ("s=%d\n",c);
}
//欢迎一起探讨~