import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = Integer.parseInt(sc.next());
    int[] kagamiMochi = new int[num];
    int count = 1;
    for (int i = 0; i<num; i++){
      kagamiMochi[i] = Integer.parseInt(sc.next());
    }
    Arrays.sort(kagamiMochi);
    for(int j = num-2; j>=0; j--){
      if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      }
    }
    System.out.println(count);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = Integer.parseInt(sc.next());
    int[] kagamiMochi = new int[num];
    int count = 1;
    for (int i = 0; i<num; i++){
      kagamiMochi[i] = Integer.parseInt(sc.next());
    }
    Arrays.sort(kagamiMochi);
    for(int j = num-2; j>=0; j--){
      if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      }
    }
    System.out.println(count);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = Integer.parseInt(sc.next());
    int[] kagamiMochi = new int[num];
    int count = 1;
    for (int i = 0; i<num; i++){
      kagamiMochi[i] = Integer.parseInt(sc.next());
    }
    Arrays.sort(kagamiMochi);
    for(int j = num-2; j>=0; j--){
      if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      }
    }
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    int num = Integer.parseInt(sc.next());
    int[] kagamiMochi = new int[num];
    int count = 1;
    for (int i = 0; i<num; i++){
      kagamiMochi[i] = Integer.parseInt(sc.next());
    }
    Arrays.sort(kagamiMochi);
    for(int j = num-2; j>=0; j--){
      if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      }
    }
    System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = Integer.parseInt(sc.next()); num Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] kagamiMochi = new int[num]; kagamiMochi new int[num] num int count = 1; count 1 for (int i = 0; i<num; i++){
      kagamiMochi[i] = Integer.parseInt(sc.next());
    } int i = 0; int i = 0; i 0 i<num i num i++ i++ i {
      kagamiMochi[i] = Integer.parseInt(sc.next());
    } {
      kagamiMochi[i] = Integer.parseInt(sc.next());
    } kagamiMochi[i] = Integer.parseInt(sc.next()) kagamiMochi[i] kagamiMochi i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Arrays.sort(kagamiMochi) Arrays.sort Arrays kagamiMochi for(int j = num-2; j>=0; j--){
      if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      }
    } int j = num-2; int j = num-2; j num-2 num 2 j>=0 j 0 j-- j-- j {
      if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      }
    } {
      if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      }
    } if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      } kagamiMochi[j] != kagamiMochi[j+1] kagamiMochi[j] kagamiMochi j kagamiMochi[j+1] kagamiMochi j+1 j 1 {
        count++;
      } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = Integer.parseInt(sc.next());
    int[] kagamiMochi = new int[num];
    int count = 1;
    for (int i = 0; i<num; i++){
      kagamiMochi[i] = Integer.parseInt(sc.next());
    }
    Arrays.sort(kagamiMochi);
    for(int j = num-2; j>=0; j--){
      if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      }
    }
    System.out.println(count);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = Integer.parseInt(sc.next());
    int[] kagamiMochi = new int[num];
    int count = 1;
    for (int i = 0; i<num; i++){
      kagamiMochi[i] = Integer.parseInt(sc.next());
    }
    Arrays.sort(kagamiMochi);
    for(int j = num-2; j>=0; j--){
      if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      }
    }
    System.out.println(count);
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = Integer.parseInt(sc.next());
    int[] kagamiMochi = new int[num];
    int count = 1;
    for (int i = 0; i<num; i++){
      kagamiMochi[i] = Integer.parseInt(sc.next());
    }
    Arrays.sort(kagamiMochi);
    for(int j = num-2; j>=0; j--){
      if (kagamiMochi[j] != kagamiMochi[j+1]){
        count++;
      }
    }
    System.out.println(count);
  }
}
