#include <iostream>
using namespace std;
void ToBin(int decInp);
int main() {
int decInp;
cout << "Enter number in decimal : ";
cin >> decInp;
ToBin(decInp);
}
void ToBin(int decInp) {
if (decInp != 0u)
{
cout << decInp % 2u;
ToBin(decInp / 2u);
}
}