import java.util.Scanner;public class ss{public static void main(String[]argv){
Scanner sc=new Scanner(System.in);while(sc.hasNext()){int num =sc.nextInt();System.out.println(Integer.toBinaryString(num));}}}