Task: Program Execution
Input (English): N, A, b, A, s, 5351, u, 1955, u, Q
Output (English): 7306