fancy christmas tree problem