from turtle import *
def koch0(bok):
fd(bok)
def koch1(bok):
koch0(bok/3)
lt(60)
koch0(bok/3)
rt(120)
koch0(bok/3)
lt(60)
koch0(bok/3)
def koch2(bok):
koch1(bok/3)
lt(60)
koch1(bok/3)
rt(120)
koch1(bok/3)
lt(60)
koch1(bok/3)
ZnJvbSB0dXJ0bGUgaW1wb3J0ICoKCmRlZiBrb2NoMChib2spOgoJZmQoYm9rKQpkZWYga29jaDEoYm9rKToKCWtvY2gwKGJvay8zKQoJbHQoNjApCglrb2NoMChib2svMykKCXJ0KDEyMCkKCWtvY2gwKGJvay8zKQoJbHQoNjApCglrb2NoMChib2svMykKZGVmIGtvY2gyKGJvayk6Cglrb2NoMShib2svMykKCWx0KDYwKQoJa29jaDEoYm9rLzMpCglydCgxMjApCglrb2NoMShib2svMykKCWx0KDYwKQoJa29jaDEoYm9rLzMp