Task: Program Execution
Input (English): 4743, X, 149, 1607, 8905, 9639, M, S, 901, 3401
Output (English): 2, 7, 8