SRM 319 DIV 2 easy mid hard

simple is best ...