Task: Program Execution
Input (English): D, g, 5713, 4417, 8209, 7201, A, 8725, G
Output (English): 1, 2, 7, 9