Task: Program Execution
Input (English): G, 5971, 5051, 7561, I, a, u, 3967, 9145, p
Output (English): 2, 3, 4, 8, 9