Task: Program Execution
Input (English): 2027, 5473, 6549, 4363, M, 6945, 3319, X, m, 8777, x, H
Output (English): M, X, m, x, H