#include <iostream> using namespace std; int main() { int n,m; cin>>n; m=n; while(m!=1) { if(m%2==1) { cout<<m<<"*3+1="<<3*m+1<<endl; m=3*m+1; } else { cout<<m<<"/2="<<m/2<<endl; m=m/2; } } cout<<"End"; return 0; }