Task: Program Execution
Input (English): 7, 7, ['3011', '1847', '1305', '8847', '6455', '9723', '7751', 'p', 'F', '5985']
Output (English): 7751