IN A ;n
IN B ;q
MOV F 0
CMP B F
JZ 7
RETURN
IN E ;t
IN C ; l
IN D ; r
MOV G 1
CMP E G
JNZ 14
JZ 24
IN F ;x
LOAD C G
ADD G F
STORE C G
MOV H 1
ADD C H
CMP C D
JNZ 15
SUB B H
JZ 3
MOV H 0
LOAD C G
ADD H G
MOV F 1
ADD C F
CMP C D
JNZ 25
OUT H
SUB B F
JZ 3
