for(int n:stdin)write(string(n)+" = 6 * "+format(n%6<2?"%.f + 1":"%.f - 1",n/6));