import java.util.Scanner;
import java.util.Arrays;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] d = new int[n];
    int ans = 1;
    for (int cnt = 0; cnt < n; cnt++) {
      d[cnt] = sc.nextInt();
    }

    Arrays.sort(d);
    for (int cnt = 1; cnt < n; cnt++) {
      if (d[cnt] != d[cnt - 1]) {
        ans++;
      }
    }
    System.out.println(ans);
    sc.close();
  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] d = new int[n];
    int ans = 1;
    for (int cnt = 0; cnt < n; cnt++) {
      d[cnt] = sc.nextInt();
    }

    Arrays.sort(d);
    for (int cnt = 1; cnt < n; cnt++) {
      if (d[cnt] != d[cnt - 1]) {
        ans++;
      }
    }
    System.out.println(ans);
    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] d = new int[n];
    int ans = 1;
    for (int cnt = 0; cnt < n; cnt++) {
      d[cnt] = sc.nextInt();
    }

    Arrays.sort(d);
    for (int cnt = 1; cnt < n; cnt++) {
      if (d[cnt] != d[cnt - 1]) {
        ans++;
      }
    }
    System.out.println(ans);
    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] d = new int[n];
    int ans = 1;
    for (int cnt = 0; cnt < n; cnt++) {
      d[cnt] = sc.nextInt();
    }

    Arrays.sort(d);
    for (int cnt = 1; cnt < n; cnt++) {
      if (d[cnt] != d[cnt - 1]) {
        ans++;
      }
    }
    System.out.println(ans);
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] d = new int[n]; d new int[n] n int ans = 1; ans 1 for (int cnt = 0; cnt < n; cnt++) {
      d[cnt] = sc.nextInt();
    } int cnt = 0; int cnt = 0; cnt 0 cnt < n cnt n cnt++ cnt++ cnt {
      d[cnt] = sc.nextInt();
    } {
      d[cnt] = sc.nextInt();
    } d[cnt] = sc.nextInt() d[cnt] d cnt sc.nextInt() sc.nextInt sc Arrays.sort(d) Arrays.sort Arrays d for (int cnt = 1; cnt < n; cnt++) {
      if (d[cnt] != d[cnt - 1]) {
        ans++;
      }
    } int cnt = 1; int cnt = 1; cnt 1 cnt < n cnt n cnt++ cnt++ cnt {
      if (d[cnt] != d[cnt - 1]) {
        ans++;
      }
    } {
      if (d[cnt] != d[cnt - 1]) {
        ans++;
      }
    } if (d[cnt] != d[cnt - 1]) {
        ans++;
      } d[cnt] != d[cnt - 1] d[cnt] d cnt d[cnt - 1] d cnt - 1 cnt 1 {
        ans++;
      } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] d = new int[n];
    int ans = 1;
    for (int cnt = 0; cnt < n; cnt++) {
      d[cnt] = sc.nextInt();
    }

    Arrays.sort(d);
    for (int cnt = 1; cnt < n; cnt++) {
      if (d[cnt] != d[cnt - 1]) {
        ans++;
      }
    }
    System.out.println(ans);
    sc.close();
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] d = new int[n];
    int ans = 1;
    for (int cnt = 0; cnt < n; cnt++) {
      d[cnt] = sc.nextInt();
    }

    Arrays.sort(d);
    for (int cnt = 1; cnt < n; cnt++) {
      if (d[cnt] != d[cnt - 1]) {
        ans++;
      }
    }
    System.out.println(ans);
    sc.close();
  }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] d = new int[n];
    int ans = 1;
    for (int cnt = 0; cnt < n; cnt++) {
      d[cnt] = sc.nextInt();
    }

    Arrays.sort(d);
    for (int cnt = 1; cnt < n; cnt++) {
      if (d[cnt] != d[cnt - 1]) {
        ans++;
      }
    }
    System.out.println(ans);
    sc.close();
  }
}