import strscans let (_, x, y, x2, y2) = stdin.readAll.scanTuple "$i $i$s$i $i" var d = max(x, y) if x == y and x2 == y2 and x > x2: inc d echo d