Task: Program Execution
Input (English): 9439, 5191, 591, 3951, E, 7527, B, X, 2481, 3981, A, G, 6341
Output (English): E, B, X, A, G