n=int(input("enter number:")) a=[] while n >0: x=n%2 n=n//2 a.insert(0,x) print(a)