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