We can make a 4-input NAND gate using only 2-input NAND gates, as shown on the left. And both have the same truth tables as the right one; i.e., both output the same states in the same conditionst.