Task: Program Execution
Input (English): 8377, M, 7485, 2371, 8227, 7467, 5711, 1417, 7121, Z, 6339, T, 3517, C
Output (English): M, Z, T, C