import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.HashSet;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n =Integer.parseInt(in.readLine());
    String[] d = new String[n];
    HashSet hs = new HashSet();
    for(int i=0; i<n; i++) {
      d[i] = in.readLine();
      hs.add(d[i]);
    }
    System.out.println(hs.size());
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io import java.util.HashSet; HashSet java.util public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n =Integer.parseInt(in.readLine());
    String[] d = new String[n];
    HashSet hs = new HashSet();
    for(int i=0; i<n; i++) {
      d[i] = in.readLine();
      hs.add(d[i]);
    }
    System.out.println(hs.size());
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n =Integer.parseInt(in.readLine());
    String[] d = new String[n];
    HashSet hs = new HashSet();
    for(int i=0; i<n; i++) {
      d[i] = in.readLine();
      hs.add(d[i]);
    }
    System.out.println(hs.size());
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n =Integer.parseInt(in.readLine());
    String[] d = new String[n];
    HashSet hs = new HashSet();
    for(int i=0; i<n; i++) {
      d[i] = in.readLine();
      hs.add(d[i]);
    }
    System.out.println(hs.size());
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int n =Integer.parseInt(in.readLine()); n Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in String[] d = new String[n]; d new String[n] n HashSet hs = new HashSet(); hs new HashSet() for(int i=0; i<n; i++) {
      d[i] = in.readLine();
      hs.add(d[i]);
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      d[i] = in.readLine();
      hs.add(d[i]);
    } {
      d[i] = in.readLine();
      hs.add(d[i]);
    } d[i] = in.readLine() d[i] d i in.readLine() in.readLine in hs.add(d[i]) hs.add hs d[i] d i System.out.println(hs.size()) System.out.println System.out System System.out hs.size() hs.size hs String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n =Integer.parseInt(in.readLine());
    String[] d = new String[n];
    HashSet hs = new HashSet();
    for(int i=0; i<n; i++) {
      d[i] = in.readLine();
      hs.add(d[i]);
    }
    System.out.println(hs.size());
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n =Integer.parseInt(in.readLine());
    String[] d = new String[n];
    HashSet hs = new HashSet();
    for(int i=0; i<n; i++) {
      d[i] = in.readLine();
      hs.add(d[i]);
    }
    System.out.println(hs.size());
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.HashSet;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n =Integer.parseInt(in.readLine());
    String[] d = new String[n];
    HashSet hs = new HashSet();
    for(int i=0; i<n; i++) {
      d[i] = in.readLine();
      hs.add(d[i]);
    }
    System.out.println(hs.size());
  }
}