Task: Program Execution
Input (English): 1043, 3307, 5709, 1799, 529, 8167, 287, G, 9055
Output (English): 1, 2, 3, 4, 5, 6, 7, 9