import java.util.Scanner;
public class Test01 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int number = sc.nextInt();
StringBuilder binary = new StringBuilder();
int a, b;
do{
a = number / 2;
b = number % 2;
number = a;
binary.append(b);
}while(number > 0);
System.out.println(binary.reverse());
}
}
}