Task: Program Execution
Input (English): T, K, 3979, G, e, 2771, J, 4469, G
Output (English): 1, 2, 4, 5, 7, 9