Task: Program Execution
Input (English): 7985, 9231, 1161, 3125, z, a, 3261, 4465, T, 2967, J
Output (English): 7985, 9231, 1161, 3125, 3261, 4465, 2967