(define a (read)) (define b (read)) (define c (read)) (define d (read)) (display (modulo (* a b c) d)) (newline)