Task: Program Execution
Input (English): 1853, M, X, 3761, 6447, I
Output (English): 1, 4, 5