module AO222 (Z,A1,A2,B1,B2,C1,C2);

  output  Z;
  input   A1;
  input   A2;
  input   B1;
  input   B2;
  input   C1;
  input   C2;

  wire w0,w1,w2;
  wire Z,A1,A2,B1,B2,C1,C2 ;

  and  a0 (w0,A1,A2);
  and  a1 (w1,B1,B2);
  and  a2 (w2,C1,C2);
  or   o3 (Z,w0,w1,w2);

endmodule
