#include <iostream>
#include <set>
#include <algorithm>
using namespace std;
int main() {
set<string> s;
int n;
cin >> n;
while (n -- ) {
string c;
cin >> c;
s.insert(c);
}
cout << 52 - s.size();
return 0;
}