Task: Program Execution
Input (English): 2, 10, ['8915', '2479', 'F', 'P', '7241', '1479', '7733', '9507', 'J', '5445']
Output (English): 2479FP7241147977339507J5445