Task: Program Execution
Input (English): g, X, 1673, 2563, Y, 1769, M, 9109, T, 1313, 2885, H, 6391, 1259
Output (English): g, X, Y, M, T, H