#include <iostream>
using namespace std;
enum class NumericType
{
None = 0,
PadWithZero = 0x01,
NegativeSign = 0x02,
PositiveSign = 0x04,
SpacePrefix = 0x08
};
inline NumericType operator |(NumericType a, NumericType b)
{
return static_cast<NumericType>(static_cast<int>(a) | static_cast<int>(b));
}
inline NumericType operator &(NumericType a, NumericType b)
{
return static_cast<NumericType>(static_cast<int>(a) & static_cast<int>(b));
}
inline NumericType& operator |=(NumericType& a, NumericType b)
{
return a= a |b;
}
int main() {
// your code goes here
NumericType a=NumericType::PadWithZero;
a|=NumericType::NegativeSign;
cout << static_cast<int>(a) ;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKZW51bSBjbGFzcyBOdW1lcmljVHlwZQp7CiAgICBOb25lICAgICAgICAgICAgICAgICAgICA9IDAsCgogICAgUGFkV2l0aFplcm8gICAgICAgICAgICAgPSAweDAxLAogICAgTmVnYXRpdmVTaWduICAgICAgICAgICAgPSAweDAyLAogICAgUG9zaXRpdmVTaWduICAgICAgICAgICAgPSAweDA0LAogICAgU3BhY2VQcmVmaXggICAgICAgICAgICAgPSAweDA4Cn07CgppbmxpbmUgTnVtZXJpY1R5cGUgb3BlcmF0b3IgfChOdW1lcmljVHlwZSBhLCBOdW1lcmljVHlwZSBiKQp7CiAgICByZXR1cm4gc3RhdGljX2Nhc3Q8TnVtZXJpY1R5cGU+KHN0YXRpY19jYXN0PGludD4oYSkgfCBzdGF0aWNfY2FzdDxpbnQ+KGIpKTsKfQoKaW5saW5lIE51bWVyaWNUeXBlIG9wZXJhdG9yICYoTnVtZXJpY1R5cGUgYSwgTnVtZXJpY1R5cGUgYikKewogICAgcmV0dXJuIHN0YXRpY19jYXN0PE51bWVyaWNUeXBlPihzdGF0aWNfY2FzdDxpbnQ+KGEpICYgc3RhdGljX2Nhc3Q8aW50PihiKSk7Cn0KCmlubGluZSBOdW1lcmljVHlwZSYgb3BlcmF0b3IgfD0oTnVtZXJpY1R5cGUmIGEsIE51bWVyaWNUeXBlIGIpCnsKICAgIHJldHVybiBhPSBhIHxiOwp9CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCU51bWVyaWNUeXBlIGE9TnVtZXJpY1R5cGU6OlBhZFdpdGhaZXJvOwoJYXw9TnVtZXJpY1R5cGU6Ok5lZ2F0aXZlU2lnbjsKCWNvdXQgPDwgc3RhdGljX2Nhc3Q8aW50PihhKSA7CglyZXR1cm4gMDsKfQ==