Task: Program Execution
Input (English): 3, 5, ['t', 'T', 'P', '5393', 'F']
Output (English): F5393P