Task: Program Execution
Input (English): 9, 11, ['5929', '3785', 'g', '3167', '6781', 'Q', '4683', 'C', 'T', 'F', '7401', 'G', 'r', 'a', 'B', 'R']
Output (English): 1047FT