The output of a two-input NAND gate is false if both inputs are true.

NAND Gate

Truth Table

ABO
001
011
101
110