Task: Program Execution
Input (English): 2, 5, ['7847', 'o', 'N', '5085', '3955', '2863', 's', '9981', '685', '4211', 'Y', '965', '1123']
Output (English): o, s, 965