http://1.117.71.23/problem/1661385452116
#include<bits/stdc++.h>
using namespace std;
int n;
int c;
void fun(int x){
if(x==1) return;
if(x%2==0) x/=2,c++;
else x=3*x+1,c++;
fun(x);
}
int main(){
cin>>n;
fun(n);
cout<<c<<endl;
}
#include<bits/stdc++.h>
using namespace std;
int n;
int c;
void fun(int x){
if(x==1) return;
if(x%2==0){
cout<<x<<"/2="<<x/2<<endl; x/=2,c++;
}
else {
cout<<x<<"*3+1="<<x*3+1<<endl;x=3*x+1,c++;
}
fun(x);
}
int main(){
cin>>n;
fun(n);
}