Task: Program Execution
Input (English): 3043, r, m, i, 2653, i, 1703, 1125, 6299, 4863, n, h
Output (English): h, i, m, n, r