import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int s = sc.nextInt();
    int count=4;
    while(s!=4&&s!=2&&s!=1){
      count++;
      s=calc(s);
    }
    System.out.println(count);
  }
  static int calc(int n){
    if(n%2==0){
      return n/2;
    }
    return 3*n+1;
  }
} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int s = sc.nextInt();
    int count=4;
    while(s!=4&&s!=2&&s!=1){
      count++;
      s=calc(s);
    }
    System.out.println(count);
  }
  static int calc(int n){
    if(n%2==0){
      return n/2;
    }
    return 3*n+1;
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int s = sc.nextInt();
    int count=4;
    while(s!=4&&s!=2&&s!=1){
      count++;
      s=calc(s);
    }
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    int s = sc.nextInt();
    int count=4;
    while(s!=4&&s!=2&&s!=1){
      count++;
      s=calc(s);
    }
    System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s = sc.nextInt(); s sc.nextInt() sc.nextInt sc int count=4; count 4 while(s!=4&&s!=2&&s!=1){
      count++;
      s=calc(s);
    } s!=4&&s!=2&&s!=1 s!=4&&s!=2&&s!=1 s!=4 s 4 s!=2 s 2 s!=1 s 1 {
      count++;
      s=calc(s);
    } count++ count s=calc(s) s calc(s) calc s System.out.println(count) System.out.println System.out System System.out count String[] args args static int calc(int n){
    if(n%2==0){
      return n/2;
    }
    return 3*n+1;
  } calc {
    if(n%2==0){
      return n/2;
    }
    return 3*n+1;
  } if(n%2==0){
      return n/2;
    } n%2==0 n%2 n 2 0 {
      return n/2;
    } return n/2; n/2 n 2 return 3*n+1; 3*n+1 3*n 3 n 1 int n n
import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int s = sc.nextInt();
    int count=4;
    while(s!=4&&s!=2&&s!=1){
      count++;
      s=calc(s);
    }
    System.out.println(count);
  }
  static int calc(int n){
    if(n%2==0){
      return n/2;
    }
    return 3*n+1;
  }
}