Task: Program Execution
Input (English): 3, 5, ['9295', '3901', 'g', '6745', 'P']
Output (English): g6745P