Greedy birds math - written