ll@N,m=N,K=0;string S{};while(m>1){K++;if(m%2==0)m/=2,S+="/";else if(m%4<2)m=3m+1,S+="+";else m=3m-1,S+="-";}wtLn(K,S);