#include using namespace std; using ll = long long; int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); auto nand = [&] (bool x, bool y) -> bool { return !(x & y); }; for (bool a = true; ; a = !a) { for (bool b = true; ; b = !b) { for (bool c = true; ; c = !c) { if (nand(nand(a, b), c) != nand(a, nand(b, c))) { cout << a << " " << b << " " << c << "\n"; return 0; } } } } return 0; }