Task: Program Execution
Input (English): 5407, c, 61, X, 1187, 535, 4255, 1263, J, 2537, 2583, M, 4975
Output (English): c, X, J, M