Y = 0 Z = 0 A = 0 B = 0 while True: print(X, end=' ') if X==1: break if X%2==0: X=X//2 else: X=3*X+1 Y=X+0 Z=X*1 A=X-0 B=X//1