Read the input file; Initialize the network.