#include <iostream>
class A
{
public:
A& operator==(const A&) {
return *this;
}
operator bool() const {
return true;
}
};
int main() {
A x, y, z;
std::cout << std::boolalpha << (x == y == z) << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgQQp7CnB1YmxpYzoKICAgIEEmIG9wZXJhdG9yPT0oY29uc3QgQSYpIHsKICAgICAgICByZXR1cm4gKnRoaXM7CiAgICB9CiAgICAKICAgIG9wZXJhdG9yIGJvb2woKSBjb25zdCB7CiAgICAgICAgcmV0dXJuIHRydWU7CiAgICB9Cn07CgppbnQgbWFpbigpIHsKICAgIEEgeCwgeSwgejsKICAgIHN0ZDo6Y291dCA8PCBzdGQ6OmJvb2xhbHBoYSA8PCAoeCA9PSB5ID09IHopIDw8IHN0ZDo6ZW5kbDsKfQo=