$/=get.words;say words.sum-$1*+^-$0