Task: Program Execution
Input (English): 2597, 4567, h, 2753, 8185, c, n, 9377, 8451, P, 3117, 5503, A
Output (English): 2597, 4567, 2753, 8185, 9377, 8451, 3117, 5503