using C=System.Console;class X{static void Main(){for(int n;;C.Write(n+" = 6 * {0} {1} 1\n",-~n/6," +-"[n%3]))n=int.Parse(C.ReadLine());}}