SRM 578 DIV 1 Easy - GooseInZooDivOne: Accepted