Task: Program Execution
Input (English): 3, 4, ['561', '1221', 'R', '6333']
Output (English): 6333, R