Task: Program Execution
Input (English): N, O, V, x, p, 5083, 4147, x, K, 1739, v, 5443
Output (English): 16412