#include <iostream>
#include <bitset>
using namespace std;

int main() {
	// your code goes here
	std::bitset<4> flags;
	flags.set(1);
	flags.set(3);
	std::cout << flags.to_string() << std::endl;
	std::cout << flags.to_ulong() << std::endl;
	return 0;
}