n=int(input()) m=int(input()) print(n*(m%10)) print(n*((m%100)//10)) print(n*(m//100)) print(n*m)
접근 방법