#include <stdio.h>
#import <Foundation/Foundation.h>

int main() {
 
  int N;
  scanf("%d", &N);
  
  NSInteger i;
  NSMutableArray *strings = [[NSMutableArray alloc] init];
  NSMutableSet *set = [[NSMutableSet alloc] init];
  NSInteger result = 0;
  for(i=0;i<N;i++) {
    char **s;
    scanf("%s", &s);
    NSString* str = [NSString stringWithCString: *s encoding:NSUTF8StringEncoding];
    //if ([set contains: str]) {
      //result ++;
    //}
    //[set insertObject: str];
  }

  return 0;
}