Specify input and output neurons separately