Task: Program Execution
Input (English): 2839, g, 6303, 9353, 9759, 8745, 4023, P, 2987, 9705
Output (English): 1, 3, 4, 5, 6, 7, 9, 10