https://www.acmicpc.net/problem/2588
using System;
class Program
{
static void Main() {
string s=Console.ReadLine();
string s1=Console.ReadLine();
int n=int.Parse(s);
int m=int.Parse(s1);
int num=m%10;
int a=num*n;
m/=10;
num=m%10;
int b=num*n;
m/=10;
num=m%10;
int c=num*n;
int sum=(a+b*10+c*100);
Console.WriteLine(a);
Console.WriteLine(b);
Console.WriteLine(c);
Console.WriteLine(sum);
}
}