#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <stack>
#include <map>
using namespace std;
int main() {
stack<int> mystack;
int n;
while (scanf("%d", &n) != EOF) {
while (n != 0) {
int t = n % 2;
mystack.push(t);
n /= 2;
}
while (!mystack.empty()) {
int t = mystack.top();
printf("%d", t);
mystack.pop();
}
printf("\n");
}
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号