Task: Program Execution
Input (English): 3921, 1019, v, u, M, Q
Output (English): 1, 2