#include <windows.h>
#include <bitset>
#include <string>
using namespace std;
int main()
{
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
system("color 0A");
cout << "Введите число ";
int n;
cin >> n;
bitset<32u> bs(n);
auto flag = false;
for (short u = 31; u >= 0; --u)
{
flag = bs[u] == 0? flag : true;
cout << (flag? to_string(bs[u]) : "");
}
cout << endl;
system("pause");
return 0;
}
