$/=words;say $2>1||$0~~$1??$0 x+^-$2~$1!!-1