[Community puzzle] To Sky's Edge

I think that you should read the statement carefully.

Solved it. What I was missing, are minimum and maximum ages I used in the loop.

GOAT’d comment right here