m@main=getLine>>=print.round.foldr((/).log.read)1.words>>m