TopCoder SRM 611 div 2, 250 AC.