Changed main.cpp to respect the new input.txt file format