When i=2, the condition of exiting the loop is not satisfied, S=9, I = 3;;
When i=3, the condition of exiting the loop is not satisfied, S=27, I = 4;;
When i=4, the condition of exiting the loop is not satisfied, S=8 1, I = 5;;
When i=5, the condition of exiting the loop is met,
So the answer is: 8 1