#include <iostream>
#include <string>
using namespace std;
int main() {
string bin;
int dec;
while (cin>>dec) {
bin = "";
while (dec > 0) {
bin.insert(bin.begin(),dec%2+'0');
dec /= 2;
}
cout << bin << endl;
}
return 0;
}