#include<stdio.h> int main(void){int n,i=31,b[32];scanf("%d",&n);do{b[i--]=n&1;}while(n>>=1);while(i<31)printf("%d",b[++i]);return 0;}