main(i){for(;~scanf("%d",&i);printf("%d = 6 * %d %c 1\n",i,-~i/6,45+~i%6));}