import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {System.out.println((new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct().count());}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException {System.out.println((new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct().count());}
} Main public static void main(String[] args) throws IOException {System.out.println((new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct().count());} main {System.out.println((new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct().count());} System.out.println((new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct().count()) System.out.println System.out System System.out (new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct().count() (new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct().count (new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct() (new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct (new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted() (new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted (new BufferedReader(new InputStreamReader(System.in))).lines().skip(1) (new BufferedReader(new InputStreamReader(System.in))).lines().skip (new BufferedReader(new InputStreamReader(System.in))).lines() (new BufferedReader(new InputStreamReader(System.in))).lines (new BufferedReader(new InputStreamReader(System.in))) 1 String[] args args public class Main {
	public static void main(String[] args) throws IOException {System.out.println((new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct().count());}
} public class Main {
	public static void main(String[] args) throws IOException {System.out.println((new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct().count());}
} Main
import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {System.out.println((new BufferedReader(new InputStreamReader(System.in))).lines().skip(1).sorted().distinct().count());}
}