#include #include #include using namespace std; int n,pointnum; char s[110]; int trie[1200010][26],a[1200010]; int main(){ scanf("%d",&n); while (n--){ scanf("%s",s); if (s[0]=='i'){ scanf("%s",s); int u=0,m=strlen(s); for (int i=0;i