#include<iostream>#include<stdlib.h>using namespace std;unsigned int in;char out[100];int main(){while(cin>>in){ itoa(in,out,2); cout<<out<<endl;}return 0;}