#include <bits/stdc++.h>
using namespace std;
int ravstr(char *a, char *b) {
  if (strlen(a) != strlen(b)) return 0;
  int i;
  for (i = 0; i < strlen(a); i++)
    if (a[i] != b[i]) return 0;
  return 1;
}
int main() {
  int n, i, j, res = 0, ok;
  cin >> n;
  struct list {
    char tree[10], color[10];
    int picked;
  } mas[n];
  for (i = 0; i < n; i++) {
    for (j = 0; j < 10; j++) {
      mas[i].tree[j] = '\0';
      mas[i].color[j] = '\0';
    }
    mas[i].picked = 0;
    scanf("%s", mas[i].tree);
    scanf("%s", mas[i].color);
  }
  res = 1;
  mas[0].picked = 1;
  for (i = 1; i < n; i++) {
    ok = 1;
    mas[i].picked = 1;
    for (j = 0; j < i; j++) {
      if (ravstr(mas[j].tree, mas[i].tree) &&
          ravstr(mas[j].color, mas[i].color) && mas[j].picked == 1) {
        mas[i].picked = 0;
        ok = 0;
        break;
      }
    }
    if (ok) {
      res++;
    }
  }
  cout << res;
  return 0;
}
