#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;
}
