#include<bits/stdc++.h>
using namespace std;
void move(int n, char start, char goal,char temp){
if(n >= 1){
move(n-1,start,temp,goal);
printf("disk%d from %c to %c \n",n,start,goal);
move(n-1,temp,goal,start);
}
}
int main(){
int n = 5;
move(n,'a','c','b');
return 0;
}
//移动需要2的n次-1