import turtle

n = int(input("What is n?\n"))

# Do triangles with bases on the bottom.
for i in range(n):

    # This is one triangle.
    for j in range(3):
        turtle.forward(50)
        turtle.left(120)

    # Go forward so we are ready to draw the next.
    turtle.forward(50)

# Turn and then we have two segments to draw.
turtle.left(60)
turtle.forward(50)
turtle.left(120)
turtle.forward(50*n)
