Task: Program Execution
Input (English): n, 55, 55, 1, i, p, g, 349
Output (English): 1, 3, 4, 5, 9