https://www.acmicpc.net/problem/2588
import java.util.*
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var n=s.nextInt();
var m=s.nextInt();
var num=m%10
var a=num*n
m/=10
num=m%10
var b=num*n
m/=10
num=m%10
var c=num*n
var sum=a+b*10+c*100
println(a)
println(b)
println(c)
println(sum)
}