//10進数を2進数に変更
public class Main {
	public static void main(String[] args) {
		System.out.println("数字(10進数)を入力してください");
		int decimal = new java.util.Scanner(System.in).nextInt();
		int ans = 0;
		int kisu = 1;
		int a;

		while(decimal != 0) {
			ans = ans + decimal % 2 * kisu;
			decimal = decimal / 2;
			kisu = kisu * 10;
		}
		System.out.println(ans);
	}
}