Task: Program Execution
Input (English): 8639, 4143, 2869, 9663, G, 4623
Output (English): 5