Task: Program Execution
Input (English): i, 5397, 5197, n, q, p, I, T
Output (English): i, n, q, p, I, T