System.in.eachLine{m=1;it.split(",").each{m*=it.toLong()};println m}