Task: Program Execution
Input (English): y, C, Q, 5749, 2141, q, Q, 8949
Output (English): 5