Task: Program Execution
Input (English): 4, 10, ['9779', 'n', '5695', 'y', 'P', 'm', 'T', '1541', '8097', 'R', 'F']
Output (English): 9638