INPUT SU,0 IF OFF OUTPUT M,0 OUTPUT T,0 OUTPUT W,0 OUTPUT TH,0 OUTPUT F,0 ELSE ON OUTPUT M,0 OUTPUT T,0 OUTPUT W,0 OUTPUT TH,0 OUTPUT F,0 ENDIF INPUT M,0 INPUT T,0 INPUT W,0 INPUT TH,0 INPUT F,0 OR OR OR OR INPUT SA,0 INPUT SU,0 AND NOT OR ON OUTPUT SU,0 OFF OUTPUT SU,0 END