Task: Program Execution
Input (English): 5223, 4193, 8897, 7907, N, 2389, s, 8405, 3767, 8243, n, h, N, 4213, p, 4549, 2093, 711
Output (English): 60590