a,b,_,c,d=$<.read.split;$><<[~0,a,c][eval b+'<=>'+d]