
package com.cn;
import java.util.Scanner;
public class T1{
public static void main(String[] args) {
Scanner x=new Scanner(System.in);
int n=x.nextInt();
String str="";
while (n!=0) {
str=n%2+str;
n=n/2;
}
System.out.println(str);
}
}


