When you eat all the gold, you will pass it. Note that to make full use of your brain, oh, how to use a minimum of lines to eat all the gold coins.