Task: Program Execution
Input (English): 2, 10, ['O', '8791', 'S', '5271', 'p', '8157', '2587', 'X', 't', '1883', 'r', 'Y', '3671', 'O', 's', '6705', '9925', '6805', 'u', '3861', '7375']
Output (English): 8791, Y