#include<stdio.h>
int main()
{
	int n,d;
	scanf("%d",&n);
	if(n%2==0){
		
	
	d=n/2;
	printf("%d/2=%d\n",n,d);
	}
	else
	{
	d=n*3+1;
	printf("%d*3+1=%d\n",n,d);
	}
	while(d!=1)
	{
			if(d%2==0){
		
	
	
	printf("%d/2=%d\n",d,d/2);
		d=d/2;
	}
	else
	{
	
	printf("%d*3+1=%d\n",d,d*3+1);
		d=d*3+1;
	}
		
	}
}