Task: Program Execution
Input (English): 7271, U, V, U, b, n, 7681, V, v, 2683, G, N, 8635, 5079, j, 4179
Output (English): 35528