// tower of hanoi 

num[4];

mov( n, from, to){
  if( n == 1) {
    num[from] = num[from] - 1;
    num[to] = num[to] + 1;
    print(from," -> ",to,"\n");
  } else {
    other = 6 - from - to;
    mov(n-1, from, other);
    mov(1, from, to );
    mov(n-1, other, to);
  }
}

main() {
  disk = 3;
  num[0] = 0;
  num[1] = disk;
  num[2] = 0;
  num[3] = 0;
  mov(disk,1,3);
}
