SRM 439 DIV 1 Easy: Accepted