Task: Program Execution
Input (English): 2, 3, ['i', '7797', '6175', '2445', '2809', '9001', '9645', 'h', '5391', 'S']
Output (English): 7797, 2809, h