IN A
IN B
MOV C 0
MOV D 1
CMP B C
JNZ 36
IN E
IN F
IN G
CMP E D
JZ 24
IN H
CMP F G
JZ 21
LOAD F A
ADD A H
STORE F A
ADD F D
CMP D C
JZ 13
SUB B D
CMP D C
JZ 5
MOV H 0
CMP F G
JZ 32
LOAD F A
ADD H A
ADD F D
CMP D C
JZ 25
OUT H
SUB B D
CMP D C
JZ 5
RETURN