srm 197 div 1 problem 1