//Informatik - Serie 11 - Challenge
//Program: MuellerVincent.cpp
//Baumartig
//Author: V.Müller
#include
#include
void f (int n)
{
if (n==0)
ifm::forward();
else
{
f(n-1);
ifm::save();
ifm::right(50);
f(n-1);
ifm::restore();
ifm::save();
ifm::left(50);
f(n-1);
ifm::restore();
f(n-1);
}
}
int main()
{
unsigned int n;
std::cin >> n;
f(n);
return 0;
}