Task: Program Execution
Input (English): 4579, N, 1265, f, d, R, 3563, R, d, A, 7135, 3301, 1627
Output (English): 4579, 1265, 3563, 7135, 3301, 1627