#include<iostream>
#include<set>
#include<string>
using namespace std;
int main()
{
string s;
while(getline(cin,s))
{
if(s=="#")
return 0;
set<string>v;
string stream;
for(int i=0;i<s.size();i++)
{
int times=0;
while(s[i]>='a'&&s[i]<='z')
{
stream+=s[i];
times++;
i++;
}
if(times)
{
v.insert(stream);
stream.clear();
}
}
cout<<v.size()<<endl;
v.clear();
}
return 0;
}
07-30
1780
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)