#include <bits/stdc++.h>
int main() {
  int cp;
  char a[200][1000];
  int n, i, j, c = 0;
  scanf("%d", &n);
  c = 1;
  for (i = 0; i < 2 * n; i += 2) scanf("%s%s", a[i], a[i + 1]);
  for (i = 0; i < 2 * (n - 1); i += 2) {
    cp = 0;
    for (j = i + 2; j < 2 * n; j += 2)
      if ((strcmp(a[i], a[j]) == 0) && (strcmp(a[i + 1], a[j + 1]) == 0)) {
        cp++;
      }
    if (cp == 0) {
      c++;
    }
  }
  printf("%d", c);
  return 0;
}
