#include<stdio.h>

#define N 3


void
toh(int f , int t, int a, int n)
{

  
  int moved;

  if(n == 1 )
  {
    moved = n;
    return;
  }
  //Move n-1
  toh(f , a , t , n-1);

  toh ( f , t ,  a ,  1);

  toh ( a ,  t , f , n-1 );


}

int main()
{
  int a=1;

  toh(a , 2 , 3 , N);

  return 0;

}
