Task: Program Execution
Input (English): 4441, 7579, M, 9553, 5985, Z
Output (English): M, Z