#include <iostream>
using namespace std;

void main (void)
{
	int den, bin;
	cout << "Enter number to be converted : ";
	cin >> den;
	while (den > 0)
	{
		bin = den%2;
		cout << bin << " ";
		den = den/2;
	}
	cout << endl;
}