Task: Program Execution
Input (English): 4159, 7533, 6757, 69, 3787, 6771, V, 4317, 8769, 5843, 9231, S, q, 9299, V, I, 3673, 9595, 1969
Output (English): 81772