Task: Program Execution
Input (English): z, 7013, 4563, n, x, 9597, u, 8691, 5751, z, 6085, Q
Output (English): 6