SRM 619. div2-250. Submitted for 225 points