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