Task: Program Execution
Input (English): 1, 5, ['5401', '6153', '3839', 'q', '2755', 'c', '6003']
Output (English): 18148