Task: Program Execution
Input (English): 6, 8, ['4741', 'P', '8511', '399', 'j', '541', '9723', '5045', 'v', 'k', '1687', '9591', '9903', '9375', 'V', '237', '9061', '5419', '4459', '2337', '2871', 'P']
Output (English): 15309