INPUT "A=", A
INPUT "B=", B
INPUT "C=", C
For i=1 to N
If X(i) mod A =0 AND X(i) mod B =0 AND X(i) mod C <> 0 Then
Print X(i)
End if
Next i
INPUT "A=", A
INPUT "B=", B
INPUT "C=", C
For i=1 to N
If X(i) mod A =0 AND X(i) mod B =0 AND X(i) mod C <> 0 Then
Print X(i)
End if
Next i