#include<stdio.h>
#include<math.h>
#include<stdlib.h>


void Koch(double x1,double y1,double x2,double y2,int dim);
main(){
  int n;
  double M=100.0,m=0.0;

  scanf("%d",&n);

  Koch(0,0,100,0,n);

  printf("%f %f\n",M,m);
  return 0;
}
void Koch(double x1,double y1,double x2,double y2,int dim)
{
}