Task: Program Execution
Input (English): 4969, 157, 3627, 235, 3347, 529, G, 5755
Output (English): 7