SRM 312 DIV 2 easy mid

hard is too hard;