Task: Program Execution
Input (English): 1043, j, i, 3331, 6491, 4993, M, m, W, 3637
Output (English): 1043, 3331, 6491, 4993, 3637