put tents by tree problem