#include<stdio.h> int fun(int n,int a) { int i,j,sum,sum2=0; for(i=1;i<=n;i++) { sum=0; for(j=0;j<i;j++) { sum=sum*10+a; } sum2+=sum; } return sum2; } int main() { int i,j,n,a; scanf("%d %d",&n,&a); printf("%d",fun(n,a)); }