Task: Program Execution
Input (English): 1, 3, ['B', 'R', 'a', '5047', '1899', '7347', '1171', '1063', '8785', '1339']
Output (English): B, 5047, 1171, 1339