#include <iostream>
using namespace std;
int main()
{
int a=1,a_count=0;
cin>>a;
while(1)
{
if(a==1)
break;
if(a%2==0)
a/=2;
else
a=(a*3+1)/2;
++a_count;
}
cout<<a_count;
return 0;
}
——————————————
希望善始善终