#include<stdio.h> int main() { int a[128],n,i=0; scanf("%d",&n); while(n!=0) a[i++]=n%2, n/=2; i--; /*这里补个就行了*/ for(;i>=0;i--) printf("%d",a[i]); putchar('\n'); return 0; }