1#include <iostream>
2using namespace std;
3int main() {
4 long n, d, r, binary = 0;
5 n=10;
6 d = n;
7 int temp = 1;
8 while (n!=0) {
9 r = n%2;
10 n = n / 2;
11 binary = binary + r*temp;
12 temp = temp * 10;
13 }
14 printf("%ld", binary);
15 return 0;
16}