repeat while n mod 6 is not 0 or n is 0 add 1 to n put n end repeat