n=int(input()) for i in range(50): if n%2==0: n//=2 else: n=3*n+1 if n==0: print("No") else: print("Yes") print(n)