Task: Program Execution
Input (English): 1, 1, ['497', '5285', '2949', 'd', 'g', '3231', 'R']
Output (English): 497, 5285, 2949, d, g, 3231, R