#include<iostream.h>
int main()
{
	long desimal,pembagi=1073741824,bit;
	cout<<"Nilai Desimal: ";
	cin>>desimal;
			cout<<"Hexadesimal = "<<hex<<desimal<<end1;
			cout<<"Oktal       = "<<oct<<desimal<<end1;
			cout<<"Biner       = ";
	while(pembagi>desimal)pembagi/=2;
	do{
		bit=desimal/pembagi;
		cout<<bit;
		desimal=desimal%pembagi;
		pembagi/=2;
	}
	while(pembagi>=1);
	cout<<"\n";
	return 0;
}