$/=words;say max $0*$1-$/[3..*].sum,-1