#include #include #include #include using namespace std; string tree[1000001]; int n=0,ans=0; int cmp(string a,string b) { return a