Task: Program Execution
Input (English): 3, 4, ['d', '3359', '775', 'T']
Output (English): T, 775