#include <stdio.h>
#include <sstream>
#include <iostream>
using namespace std;
string intToChar(int number) {
ostringstream oss;
oss << number;
return oss.str();
}
int main() {
int cinNumber;
while (cin >> cinNumber) {
string mergerString = "";
do {
if (cinNumber / 2 > 0) {
mergerString = intToChar(cinNumber % 2) + mergerString;
cinNumber = cinNumber / 2;
}
else {
mergerString = intToChar(cinNumber) + mergerString;
cinNumber = 0;
}
}
while (cinNumber > 0);
cout << mergerString << endl;
}
return 0;
}
:D