Think like this:
What is the condition for the looping? What do you want it to do?
You want to loop AS LONG as the input is invalid.
When is the input invalid?
As long as the input is NOT 1 and...