Task: Program Execution
Input (English): 9747, N, T, F, v, H, 3715
Output (English): 13462