BOJ-2588
14 Mar 2022#include <iostream>
using namespace std;
int main(){
int A, B;
cin >> A >> B;
int X, Y, Z, W;
X = A*(B%10);
Y = A*((B/10)%10);
Z = A*(B/100);
W = X+Y*10+Z*100;
cout << X << endl << Y << endl << Z << endl << W << endl;
return 0;
}