int logor(int a, int b) { if(a || b) return a * b; else return a + b; }