Task: Program Execution
Input (English): 9943, 9833, M, 9793, 5345, M, 1079, 6527, Z, X, p, U
Output (English): 1, 2, 4, 5, 7, 8