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