Task: Program Execution
Input (English): r, d, Z, 1207, 9313, X, 749, n, 1145
Output (English): 1, 2, 3, 6, 8