object Main extends App {
	import scala.math._
	var n = scala.io.StdIn.readLong

	var ans = List[Int]()
	var f = 0L
	var v = 0L

	for(i<-32L to 0L by -1L){
		if(i%2 == 0){
			v = powL(2L, i)
		}else{
			v = powL(-2L, i)
		}

		var sup = v
		var inf = v

		for(j<-i-1L to 0L by -1L){
			if(j%2L == 0L){
				sup += powL(2L, j)
			}else{
				inf += powL(-2L, j)
			}
		}

		if(inf <= n && n <= sup){
			ans = 1 :: ans
			n -= v
			f = 1 
		}else{
			if(f == 1){
				ans = 0 :: ans
			}
		}
	}

	if(ans.size == 0) println(0)
	else println(ans.reverse.mkString)

	def powL(x: Long, y: Long) = pow(x, y).toLong
}
