Task: Program Execution
Input (English): 8029, 5783, 941, 1147, G, 9517, 5169
Output (English): 1, 2, 3, 4, 6, 7