Task: Program Execution
Input (English): 2, 3, ['r', 'z', 'w', 'H', '3247', 'F']
Output (English): wz