Task: Program Execution
Input (English): 5083, N, 2935, 3101, V, 4025, 1697, Z
Output (English): 16841