Task: Program Execution
Input (English): G, a, 3685, 8083, W, 4729
Output (English): 3