Added input1.txt for default cases. 
Bug fixed.