for(s in readLines('stdin'))write(eval(parse(t=gsub(',','*',s))),1)