Task: Program Execution
Input (English): n, 9451, 6257, 2427, T, e, N
Output (English): 1, 5, 6, 7