#include<stdio.h> int main() { int i=1; int c=0; int a,b; scanf("%d",&a); while(a>0) { b=a%2; c=c+b*i; i=i*10; a=a/2; } printf("%d",c); }