#include <iostream>
#include <vector>
#include <cmath>
enum COLLISION {
C_ON = 1,// 00001
C_EX = 2,// 00010
BOX = 4,// 00100
POLYGON = 8,// 01000
OCTREE = 16// 10000
};
int main()
{
int c = C_ON | BOX;
if(c & C_ON) std::cout << "c_on" << std::endl;
else std::cout << "c_off" << std::endl;
if(c & C_EX) std::cout << "c_ex" << std::endl;
if(c & BOX) std::cout << "box" << std::endl;
if(c & POLYGON) std::cout << "polygon" << std::endl;
if(c & OCTREE) std::cout << "octree" << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8Y21hdGg+CgplbnVtIENPTExJU0lPTiB7CiAgICBDX09OICAgICAgICAgICAgPSAxLC8vIDAwMDAxCiAgICBDX0VYICAgICAgICAgICAgPSAyLC8vIDAwMDEwCiAgICBCT1ggICAgICAgICAgICAgPSA0LC8vIDAwMTAwCiAgICBQT0xZR09OICAgICAgICAgPSA4LC8vIDAxMDAwCiAgICBPQ1RSRUUgICAgICAgICAgPSAxNi8vIDEwMDAwCn07CmludCBtYWluKCkKeyAgCiAgICBpbnQgYyA9IENfT04gfCBCT1g7CiAgICAKICAgIGlmKGMgJiBDX09OKSBzdGQ6OmNvdXQgPDwgImNfb24iIDw8IHN0ZDo6ZW5kbDsKICAgIGVsc2Ugc3RkOjpjb3V0IDw8ICJjX29mZiIgPDwgc3RkOjplbmRsOwogICAgaWYoYyAmIENfRVgpIHN0ZDo6Y291dCA8PCAiY19leCIgPDwgc3RkOjplbmRsOwogICAgaWYoYyAmIEJPWCkgc3RkOjpjb3V0IDw8ICJib3giIDw8IHN0ZDo6ZW5kbDsKICAgIGlmKGMgJiBQT0xZR09OKSBzdGQ6OmNvdXQgPDwgInBvbHlnb24iIDw8IHN0ZDo6ZW5kbDsKICAgIGlmKGMgJiBPQ1RSRUUpIHN0ZDo6Y291dCA8PCAib2N0cmVlIiA8PCBzdGQ6OmVuZGw7Cn0=