Task: Program Execution
Input (English): Q, 5061, e, 2755, V, g, 4215, 1565, 3177, 6211, 7845, 173, G, 2505, R, 4525, 3689, N
Output (English): 11