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