#include <stdio.h>
#include <stdlib.h>
char s[200001][11];
int slist[200001];
int N, sl_long;
int main(void) {
	scanf("%d", &N);

	for(int k = 0; k <N; k++){
		scanf("%s", s[k]);
		if(k == 0){
			slist[0] = k;
			sl_long++;
		}
		int cnt = 0;
		for(int j = 0; j < sl_long; j++){
			int check = 0;
			for(int i = 0; i < 11; i++){
				if(s[k][i] == s[j][i])check++;
				else i = 11;
			}
			if(check == 11){
				cnt++;
				j = sl_long;
			}

		}
		if(cnt == 0){
			slist[sl_long] = k;
			sl_long++;
		}

	}

	printf("%d", sl_long);

	return 0;
}