Task: Program Execution
Input (English): G, g, 2891, 4783, G, 9329, 7625, Q, 9787, 9999, 7525, m
Output (English): 5