	#include <iostream>
	#include <bitset>
	
	using namespace std;
	
	template<std::size_t num_bits>
	void readBits(istream& is, std::bitset<num_bits>& thebits)
	{
		thebits.reset();
		std::size_t total_bytes = num_bits / sizeof(unsigned char) + 1;
		std::size_t bit_pos = 0;
		for(std::size_t i = 0; 
		    is && 
		    i < total_bytes && 
		    bit_pos < num_bits;
		    ++i)
		{
			unsigned char currentByte = 0;
			if(is >> currentByte)
			{
				for(int currentBit = 0; 
				    currentBit < sizeof(unsigned char) &&
				    bit_pos < num_bits;
				    ++currentBit, ++bit_pos)
				{
					thebits[bit_pos] = currentByte &  (0x80 >> currentBit) > 0;
				}
			}
		}
	}
	
	int main() {
		std::bitset<4> nibble;
		std::bitset<8> byte;
		std::bitset<23> number_of_bits;
		
		readBits(std::cin,nibble);
		readBits(std::cin,byte);
		readBits(std::cin,number_of_bits);
		
		std::cout << nibble << byte << number_of_bits << std::endl;
		
		return 0;
	}