(define (solve x y z) (- z (if (<= x z) 1 0) (if (<= y z) 1 0))) (define (main args) (let* ([x (read)] [y (read)] [z (read)]) (print (solve x y z))) 0)