import java.util.Scanner; public class a加aa加aaa { public static void main(String[] args) { // TODO Auto-generated method stub Scanner n= new Scanner(System.in); int a=n.nextInt();//数的个数 int b=n.nextInt();//0~9 System.out.print(data(a,b)); } public static int data(int a,int b) { int k=0,sum=0; for(int i=0;i<a;i++) { k+=b; sum+=k; k*=10; } return sum; } }