Task: Program Execution
Input (English): 2, 3, ['1655', 'i', 'g', '1747', '4947', 'E', 'J', 'Q', '3759', '463', '9317', 'o', '2701', 'J']
Output (English): ig