https://cses.fi/paste/dce41542e393a739ab799/
#1n=int(input())print(n,end=" ")while n!=1:if n%2==0:n=n//2else:n=n*3+1print(n,end=" ")
https://cses.fi/paste/dce41542e393a739ab799/
#1n=int(input())print(n,end=" ")while n!=1:if n%2==0:n=n//2else:n=n*3+1print(n,end=" ")