Task: Program Execution
Input (English): 5743, 6419, R, 1517, 1233, 4379, x, X
Output (English): 3, 7, 8