$/=words;say $0+min+$2,+$5,$5-$4+$1