SRM 322: div2-500. Submitted for 339 points.