Task: Program Execution
Input (English): 5947, n, 9431, 7629, 7643, N, 141, 2353, l, F, 9665, 9489, X, 4905, H, L, 985
Output (English): 58188