Task: Program Execution
Input (English): 3321, W, K, p, l, c, o, 4691, c, 7257, U, 1149, g
Output (English): 4