#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define ll long long
#define min(a, b) ((a) > (b) ? (b) : (a))
#define max(a, b) ((a) > (b) ? (a) : (b))
#define miin(a, b, c) min((a), min((b), (c)))
#define maax(a, b, c) max((a), max((b), (c)))
#define mod 1000000007

int n;
char s[222222][11];

main()
{
    scanf("%d", &n);
    for (int i = 0; i < n; i++)
    {
        scanf("%s", s[i]);
    }
    qsort(s, n, sizeof(s[0]), strcmp);
    int ans = 1;
    for (int i = 1; i < n; i++)
    {
        ans += 1 - !strcmp(s[i - 1], s[i]);
    }
    printf("%d\n", ans);
    return 0;
}