import std.stdio;void main(){for(int x;scanf("%d",&x)>0;)printf("%d = 6 * %d %c 1\n",x-2,++x/6,45-++x%6);}