Task: Program Execution
Input (English): 5187, N, P, o, w, D, 9387, A, T, l, a
Output (English): 14574