#includeint main(int argc,char *argv[]){int num,count=0;scanf("%d",&num);while(num>1){if(num % 2 == 0){num /= 2;}elsenum =(num * 3 + 1)/2;count++;}printf("%d",count);}