#include<bits/stdc++.h>
#define ll long long
const int N=20+10;
const int M=1e5+10;
const int MOD=1e9+7;
const int MAXX=2e9;
using namespace std;
int n;
class made{
public:
int f;
int son[27];
}a[N];
string s;
int tot;
void insert(){
int len=s.length(),p=0;
for(int i=0;i<len;i++){
int u=s[i]-'0';
if(a[p].son[u]==0) a[p].son[u]=++tot;
p=a[p].son[u];
}
a[p].f++;
}
int main()
{
freopen("lowtea.in","r",stdin);
freopen("lowtea.out","w",stdout);
cin>>n;
for(int i=1;i<=n;i++) cin>>s,insert();
cout<<tot+1<<endl;
return 0;
}