val = 0 while True: val +=1 print val if val % 6 == 0: break