Task: Program Execution
Input (English): 2, 7, ['6761', '3805', '9253', 'r', '1515', '6871', '5285', 'X', 'A', 'P', '4981', 'c', '4647', 'Z', '3631', '2363']
Output (English): 3805, A, 2363