func main() var x: int :: cui@inputInt() var y: int :: cui@inputInt() var x2: int :: cui@inputInt() var y2: int :: cui@inputInt() var ans: int :: [x, y].max() if(x = y & x2 = y2 & x2 < x) do ans :+ 1 end if do cui@print("\{ans}\n") end func