import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
int input = sc.nextInt();
if (input < 0) input += 256;
int num[] = new int[8];
for(int i=7; i>=0; i--) {
num[i] = input % 2;
input /= 2;
}
for(int j=0; j<8; j++) {
if(j == 7)
System.out.println(num[j]);
else
System.out.print(num[j]);
}
}
}
}