from turtle import * 
  
def hilbert(level, angle, step): 
  
    # Input Parameters are numeric 
    # Return Value: None 
    if level == 0: 
        return
  
    right(angle) 
    hilbert(level-1, -angle, step) 
  
    forward(step) 
    left(angle) 
    hilbert(level-1, angle, step) 
  
    forward(step) 
    hilbert(level-1, angle, step) 
  
    left(angle) 
    forward(step) 
    hilbert(level-1, -angle, step) 
    right(angle) 
  


level = int(input())
size = 200
penup() 
goto(-size / 2.0, size / 2.0) 
pendown() 
     
    # For positioning turtle 
k=hilbert(level, 75, size/(2**level-1))
done() 


0ba352c3281d01f76e21f662c6fde574f842265a
<mask token>


def hilbert(level, angle, step):
    if level == 0:
        return
    right(angle)
    hilbert(level - 1, -angle, step)
    forward(step)
    left(angle)
    hilbert(level - 1, angle, step)
    forward(step)
    hilbert(level - 1, angle, step)
    left(angle)
    forward(step)
    hilbert(level - 1, -angle, step)
    right(angle)


<mask token>

<mask token>


def hilbert(level, angle, step):
    if level == 0:
        return
    right(angle)
    hilbert(level - 1, -angle, step)
    forward(step)
    left(angle)
    hilbert(level - 1, angle, step)
    forward(step)
    hilbert(level - 1, angle, step)
    left(angle)
    forward(step)
    hilbert(level - 1, -angle, step)
    right(angle)


<mask token>
penup()
goto(-size / 2.0, size / 2.0)
pendown()
<mask token>
done()

<mask token>


def hilbert(level, angle, step):
    if level == 0:
        return
    right(angle)
    hilbert(level - 1, -angle, step)
    forward(step)
    left(angle)
    hilbert(level - 1, angle, step)
    forward(step)
    hilbert(level - 1, angle, step)
    left(angle)
    forward(step)
    hilbert(level - 1, -angle, step)
    right(angle)


level = int(input())
size = 200
penup()
goto(-size / 2.0, size / 2.0)
pendown()
k = hilbert(level, 75, size / (2 ** level - 1))
done()

from turtle import *


def hilbert(level, angle, step):
    if level == 0:
        return
    right(angle)
    hilbert(level - 1, -angle, step)
    forward(step)
    left(angle)
    hilbert(level - 1, angle, step)
    forward(step)
    hilbert(level - 1, angle, step)
    left(angle)
    forward(step)
    hilbert(level - 1, -angle, step)
    right(angle)


level = int(input())
size = 200
penup()
goto(-size / 2.0, size / 2.0)
pendown()
k = hilbert(level, 75, size / (2 ** level - 1))
done()

from turtle import * 
  
def hilbert(level, angle, step): 
  
    # Input Parameters are numeric 
    # Return Value: None 
    if level == 0: 
        return
  
    right(angle) 
    hilbert(level-1, -angle, step) 
  
    forward(step) 
    left(angle) 
    hilbert(level-1, angle, step) 
  
    forward(step) 
    hilbert(level-1, angle, step) 
  
    left(angle) 
    forward(step) 
    hilbert(level-1, -angle, step) 
    right(angle) 
  


level = int(input())
size = 200
penup() 
goto(-size / 2.0, size / 2.0) 
pendown() 
     
    # For positioning turtle 
k=hilbert(level, 75, size/(2**level-1))
done() 

