Task: Program Execution
Input (English): n, a, O, T, 8151, 5727, u, d
Output (English): 13878