var n,i:comp;begin read(n);for i:=-round(ln(n)/0.7)to 0do write(n shr(-i)and 1)end.