Task: Program Execution
Input (English): 1371, D, G, 75, 6561, O, T, 2939, 8755, R, p, 5589, 6355
Output (English): 1371, 75, 6561, 2939, 8755, 5589, 6355