Task: Program Execution
Input (English): 1043, U, q, M, X, 4343, 9133, x, 1413
Output (English): 1, 6, 7, 9