Solve srm601 WinterAndReindeers.cpp with Segmentation Fault.