module OAI21 (Z,A1,A2,B);

  output  Z;
  input   A1;
  input   A2;
  input   B;

  wire w0;
  wire Z,A1,A2,B ;

  or   o0 (w0,A1,A2);
  nand n2 (Z,w0,B);

endmodule
