#include <bits/stdc++.h>
using namespace std;
int cmp(const void *a, const void *b) { return strcmp((char *)a, (char *)b); }
int main() {
  char s[105][25];
  memset(s, 0, sizeof(s));
  int n;
  while (scanf("%d", &n) != EOF) {
    getchar();
    for (int i = 0; i < n; i++) {
      fgets(s[i], sizeof(s[i]), stdin);
    }
    qsort(s, n, sizeof(s[0]), cmp);
    int count = 1;
    for (int i = 0; i < n - 1; i++) {
      if (strcmp(s[i], s[i + 1])) count++;
    }
    printf("%d\n", count);
  }
  return 0;
}
