#include using namespace std; int main(){ int in,i=0; int max; cin>>in; max=in; while(in!=1){ if((in%2)==0){ in/=2; } else{ in=3*in+1; } if(max