Taskin and apple tree

Problem Name:
Taskin and apple tree
Site:Spoj
Links:
Tags:
Problem setters: