class B{static{System.out.print(Long.toBinaryString(new java.util.Scanner(System.in).nextLong()));}}