// ConsoleApplication4.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "iostream"
using namespace std;
struct bit
{
unsigned	int _1:4;
unsigned int _2:4;
};
struct bitler
{
	unsigned	int _1:1;
unsigned	int _2:1;
unsigned	int _3:1;
unsigned	int _4:1;
unsigned	int _5:1;
unsigned	int _6:1;
unsigned	int _7:1;
unsigned	int _8:1;
};
union k
{
unsigned	int i;
struct bit b;
struct bitler bt;
};
int _tmain(int argc, _TCHAR* argv[])
{
	union  k s1;
	cin>>s1.i;
	s1.b._1=s1.b._1&s1.b._2;
	cout<<s1.bt._8;
	cout<<s1.bt._7;
	cout<<s1.bt._6;
	cout<<s1.bt._5;
	cout<<s1.bt._4;
	cout<<s1.bt._3;
	cout<<s1.bt._2;
	cout<<s1.bt._1<<endl<<endl;
	system("pause");
	return 0;
}

