1099: 角谷猜想(多实例测试)
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);while(cin.hasNext()){
int n=cin.nextInt();int res=0;while(n!=1){
if(n%2==0) n=n/2;else n=n*3+1;res++;}System.out.printf("%d\n",res);}}
}