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