Task: Program Execution
Input (English): 2, 7, ['y', '4107', 't', '1169', '273', '9723', '2453', 'r', 'R', 'Q']
Output (English): 17725