u dont need to use 3 NANDs, u just need to use the last NAND, and the 2 first can be swapped for NOTs