Task: Program Execution
Input (English): 4857, 9309, 85, X, 9419, 7171, a, 3919, M, c
Output (English): 4