from turtle import *
def koch0(bok):
df(bok)
def koch1(bok):
koch0(bok/3)
it(60)
koch0(ok/3)
rt(120)
koch0(bok/3)
it(60)
koch0(bok/3)
def koch2(bok):
koch1(bok/3)
it(60)
koch1(bok/3)
rt(120)
koch1(bok/3)
it(60)
koch1(bok/3)
ZnJvbSB0dXJ0bGUgaW1wb3J0ICoKCmRlZiBrb2NoMChib2spOgoJZGYoYm9rKSAKCQpkZWYga29jaDEoYm9rKToKCWtvY2gwKGJvay8zKQoJaXQoNjApCglrb2NoMChvay8zKQoJcnQoMTIwKQoJa29jaDAoYm9rLzMpCglpdCg2MCkKCWtvY2gwKGJvay8zKQoJCmRlZiBrb2NoMihib2spOgoJa29jaDEoYm9rLzMpCglpdCg2MCkKCWtvY2gxKGJvay8zKQoJcnQoMTIwKQoJa29jaDEoYm9rLzMpCglpdCg2MCkKCWtvY2gxKGJvay8zKQ==