Switch aa sw_0 ZERO;
Switch ba sw_1 ZERO;
Switch ca sw_2 ZERO;
 
And ab sw_0 sw_1 P;
And bb sw_1 sw_2 Q;
And cb sw_0 sw_2 R;

Or bc P Q R out;
 
Probe "output" bd out;

