Pythons' Adventure

In a distant kingdom, beyond blue seas and high mountains, there lived a clever snake named Python. After finishing his studies at the Code Academy, on his way home, he saw a thirsty grapevine that desperately needed water and care. To save the vineyard, Python had to cross dangerous floating islands and collect the exact amount of grapes from each island. In total, Python had to collect exactly 40 grapes to revive the withered vine.

Python may only move to the right (→) and upward (↑) — moving left or downward is forbidden.

Each island shows how many grains Python can collect there (numbers in the field).

Find the path where Python collects exactly 40 grains!

Python ▶