import java.util.Scanner; import java.lang.String; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int N = input.nextInt(); String S = ""; while(N > 1) { S = N%2 + S ; N = N/2; } S = N + S; System.out.print(S); input.close(); } }