//十進位數轉換成二進位數
//轉換規則:http://www.chwa.com.tw/TResource/VS/book1/ch2/2-5.htm
#include <iostream>
using namespace std;
int input, n;
string numlist;
int main() {
while (cin >> input) {
numlist = "";
while (input > 0) {
n = input % 2;
input = input / 2;
numlist += to_string(n);
}
for (int i = 0; i <= numlist.size(); i++) {
cout << numlist[numlist.size() - i];
}
cout << endl;
}
return 0;
}