#12759: 用string放二進位結果


tntchn (tntchn)


#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;
}