#include <limits>
class Foo {
public:
constexpr Foo(const int value) : value(value) {}
constexpr operator int () const { return value; }
private:
int value;
};
class Bar : public Foo {
public:
using Foo::Foo;
constexpr static Foo UNKNOWN = std::numeric_limits<int>::max();
constexpr static Foo ANY = UNKNOWN - 1;
};
int main() {
return Bar(0);
}
I2luY2x1ZGUgPGxpbWl0cz4KCmNsYXNzIEZvbyB7CnB1YmxpYzoKICAgIGNvbnN0ZXhwciBGb28oY29uc3QgaW50IHZhbHVlKSA6IHZhbHVlKHZhbHVlKSB7fSAgICAKICAgIGNvbnN0ZXhwciBvcGVyYXRvciBpbnQgKCkgY29uc3QgeyByZXR1cm4gdmFsdWU7IH0KICAgIApwcml2YXRlOgogICAgaW50IHZhbHVlOwp9OwoKY2xhc3MgQmFyIDogcHVibGljIEZvbyB7CnB1YmxpYzoKCXVzaW5nIEZvbzo6Rm9vOwogICAgY29uc3RleHByIHN0YXRpYyBGb28gVU5LTk9XTiA9IHN0ZDo6bnVtZXJpY19saW1pdHM8aW50Pjo6bWF4KCk7CiAgICBjb25zdGV4cHIgc3RhdGljIEZvbyBBTlkgICAgID0gVU5LTk9XTiAtIDE7Cn07CgppbnQgbWFpbigpIHsKCXJldHVybiBCYXIoMCk7Cn0K