Task: Program Execution
Input (English): Y, N, 9415, 5501, Q, 8549, 951, r, W, 3797, 1363, 9163, l, W, J, h, 8519, Z, 2875, 5821, 8597
Output (English): 10