string s;int n;while n!=269{input n;s="+";if n mod 6>1{s="-";}print n,"= 6 *",(n+1)/6,s,1;}