loop:s=hear();n=s.to_i()+1;print s+" = 6 * ";print n/6;say" "+["-",0,"+"][n-n/3*3]+" 1"