Program Kara to "eat" a trail of cloverleafs. The trail never goes along a tree. Therefore, the program can stop as soon as Kara stands in front of a tree.