Wire GND to -5V and VCC to +5V. Numbers with either a 'A' or a 'B' after them are inputs. Numbers with a 'Y' after them are outputs. So '1A' and '1B' are the inputs of the first NAND gate, and '1Y' is the output of the first NAND gate.