Task: Program Execution
Input (English): 5239, 3787, 4271, J, 2169, 7179, Y, q, 1361, 1413
Output (English): 1, 2, 3, 5, 6, 9, 10