Task: Program Execution
Input (English): 3039, 9491, 9977, A, b, 4379, 3345, D, 4707, b, 969, 4565, 3695, V, 485, G, 6371, 7127
Output (English): 12