Task: Program Execution
Input (English): g, O, 2007, 6953, 9279, E, 7851, 5311, 5045, C, 2959, 8245, 6943, P, 1127, 3115, V, M, 3597, B, G
Output (English): 2007, 6953, 9279, 7851, 5311, 5045, 2959, 8245, 6943, 1127, 3115, 3597