(define (compute a b c) (cond ((and (<= a 0) (<= b 0) (<= c 0)) (+ a b c)) ((or (> a (+ b c)) (> b (+ a c)) (> c (+ a b))) (* a b c)) ((or (<= (and a b) 0) (<= (and a c) 0) (<= (and b c) 0)) (square (min a b c))) (else (square (max a b c))) )