x,y,*a=$<.read.scan(/\d+/).map &:to_i c=x>y ?x:y p x==y&&a.max