Logic design for 27 inputs
Use a summing network of 27 plus 1 resistors and a voltage comparator to measure the level at the summing node and produce a logic output if the voltage indicates two or more inputs are at logic 1.