Task: Program Execution
Input (English): u, d, z, o, Q, I
Output (English): 6