for n in range(1,10):print(3*n+1if n%2else n//2) # your code goes here