for cislo in (2,3,5,7,11,13,17):
    print cislo
print "KONEC"
