#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); auto nand = [&](int a, int b){ return !(a & b); }; for(int S = 0; S < 8; S++){ int a = S & 1, b = S >> 1 & 1, c = S >> 2; if(nand(nand(a, b), c) != nand(a, nand(b, c))){ cout << a << ' ' << b << ' ' << c << endl; return 0; } } }