import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

//  B Kagami Mochi

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    List<Integer> list = new ArrayList();

    for(int i = 0; i < N ; i++) {
    	list.add(Integer.parseInt(sc.next()));
    }

    Collections.sort(list);
    Collections.reverse(list);

    int layer = 0;
    int l2 = 0;

    for(Integer l : list) {
    	if(l != l2) {
    		layer++;
    	}
    	l2 = l;
    }

    System.out.println(layer);
  }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    List<Integer> list = new ArrayList();

    for(int i = 0; i < N ; i++) {
    	list.add(Integer.parseInt(sc.next()));
    }

    Collections.sort(list);
    Collections.reverse(list);

    int layer = 0;
    int l2 = 0;

    for(Integer l : list) {
    	if(l != l2) {
    		layer++;
    	}
    	l2 = l;
    }

    System.out.println(layer);
  }
} Main public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    List<Integer> list = new ArrayList();

    for(int i = 0; i < N ; i++) {
    	list.add(Integer.parseInt(sc.next()));
    }

    Collections.sort(list);
    Collections.reverse(list);

    int layer = 0;
    int l2 = 0;

    for(Integer l : list) {
    	if(l != l2) {
    		layer++;
    	}
    	l2 = l;
    }

    System.out.println(layer);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    List<Integer> list = new ArrayList();

    for(int i = 0; i < N ; i++) {
    	list.add(Integer.parseInt(sc.next()));
    }

    Collections.sort(list);
    Collections.reverse(list);

    int layer = 0;
    int l2 = 0;

    for(Integer l : list) {
    	if(l != l2) {
    		layer++;
    	}
    	l2 = l;
    }

    System.out.println(layer);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> list = new ArrayList(); list new ArrayList() for(int i = 0; i < N ; i++) {
    	list.add(Integer.parseInt(sc.next()));
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
    	list.add(Integer.parseInt(sc.next()));
    } {
    	list.add(Integer.parseInt(sc.next()));
    } list.add(Integer.parseInt(sc.next())) list.add list Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Collections.sort(list) Collections.sort Collections list Collections.reverse(list) Collections.reverse Collections list int layer = 0; layer 0 int l2 = 0; l2 0 for(Integer l : list) {
    	if(l != l2) {
    		layer++;
    	}
    	l2 = l;
    } Integer l list {
    	if(l != l2) {
    		layer++;
    	}
    	l2 = l;
    } {
    	if(l != l2) {
    		layer++;
    	}
    	l2 = l;
    } if(l != l2) {
    		layer++;
    	} l != l2 l l2 {
    		layer++;
    	} layer++ layer l2 = l l2 l System.out.println(layer) System.out.println System.out System System.out layer String[] args args public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    List<Integer> list = new ArrayList();

    for(int i = 0; i < N ; i++) {
    	list.add(Integer.parseInt(sc.next()));
    }

    Collections.sort(list);
    Collections.reverse(list);

    int layer = 0;
    int l2 = 0;

    for(Integer l : list) {
    	if(l != l2) {
    		layer++;
    	}
    	l2 = l;
    }

    System.out.println(layer);
  }
} public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    List<Integer> list = new ArrayList();

    for(int i = 0; i < N ; i++) {
    	list.add(Integer.parseInt(sc.next()));
    }

    Collections.sort(list);
    Collections.reverse(list);

    int layer = 0;
    int l2 = 0;

    for(Integer l : list) {
    	if(l != l2) {
    		layer++;
    	}
    	l2 = l;
    }

    System.out.println(layer);
  }
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

//  B Kagami Mochi

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    List<Integer> list = new ArrayList();

    for(int i = 0; i < N ; i++) {
    	list.add(Integer.parseInt(sc.next()));
    }

    Collections.sort(list);
    Collections.reverse(list);

    int layer = 0;
    int l2 = 0;

    for(Integer l : list) {
    	if(l != l2) {
    		layer++;
    	}
    	l2 = l;
    }

    System.out.println(layer);
  }
}