print statements and fixed loop conditions