import java.util.*;

public class Main {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int mochiCount = sc.nextInt();
        Map<Integer, Integer> mochiMap = new TreeMap<>(Comparator.reverseOrder());
        for (int i = 0; i < mochiCount; i++) {
            int mochi = sc.nextInt();
            if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            }
        }
        
        int result = 0;
        for(Integer mochiKey : mochiMap.keySet()) {
            result++;
        }
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int mochiCount = sc.nextInt();
        Map<Integer, Integer> mochiMap = new TreeMap<>(Comparator.reverseOrder());
        for (int i = 0; i < mochiCount; i++) {
            int mochi = sc.nextInt();
            if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            }
        }
        
        int result = 0;
        for(Integer mochiKey : mochiMap.keySet()) {
            result++;
        }
        System.out.println(result);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int mochiCount = sc.nextInt();
        Map<Integer, Integer> mochiMap = new TreeMap<>(Comparator.reverseOrder());
        for (int i = 0; i < mochiCount; i++) {
            int mochi = sc.nextInt();
            if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            }
        }
        
        int result = 0;
        for(Integer mochiKey : mochiMap.keySet()) {
            result++;
        }
        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);
        int mochiCount = sc.nextInt();
        Map<Integer, Integer> mochiMap = new TreeMap<>(Comparator.reverseOrder());
        for (int i = 0; i < mochiCount; i++) {
            int mochi = sc.nextInt();
            if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            }
        }
        
        int result = 0;
        for(Integer mochiKey : mochiMap.keySet()) {
            result++;
        }
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int mochiCount = sc.nextInt(); mochiCount sc.nextInt() sc.nextInt sc Map<Integer, Integer> mochiMap = new TreeMap<>(Comparator.reverseOrder()); mochiMap new TreeMap<>(Comparator.reverseOrder()) for (int i = 0; i < mochiCount; i++) {
            int mochi = sc.nextInt();
            if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            }
        } int i = 0; int i = 0; i 0 i < mochiCount i mochiCount i++ i++ i {
            int mochi = sc.nextInt();
            if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            }
        } {
            int mochi = sc.nextInt();
            if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            }
        } int mochi = sc.nextInt(); mochi sc.nextInt() sc.nextInt sc if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            } mochiMap.containsKey(mochi) mochiMap.containsKey mochiMap mochi {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } mochiMap.put(mochi, (mochiMap.get(mochi) + 1)) mochiMap.put mochiMap mochi (mochiMap.get(mochi) + 1) mochiMap.get(mochi) mochiMap.get mochiMap mochi 1 {
                mochiMap.put(mochi, 1);
            } mochiMap.put(mochi, 1) mochiMap.put mochiMap mochi 1 int result = 0; result 0 for(Integer mochiKey : mochiMap.keySet()) {
            result++;
        } Integer mochiKey mochiMap.keySet() mochiMap.keySet mochiMap {
            result++;
        } {
            result++;
        } result++ result System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int mochiCount = sc.nextInt();
        Map<Integer, Integer> mochiMap = new TreeMap<>(Comparator.reverseOrder());
        for (int i = 0; i < mochiCount; i++) {
            int mochi = sc.nextInt();
            if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            }
        }
        
        int result = 0;
        for(Integer mochiKey : mochiMap.keySet()) {
            result++;
        }
        System.out.println(result);
    }
} public class Main {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int mochiCount = sc.nextInt();
        Map<Integer, Integer> mochiMap = new TreeMap<>(Comparator.reverseOrder());
        for (int i = 0; i < mochiCount; i++) {
            int mochi = sc.nextInt();
            if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            }
        }
        
        int result = 0;
        for(Integer mochiKey : mochiMap.keySet()) {
            result++;
        }
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int mochiCount = sc.nextInt();
        Map<Integer, Integer> mochiMap = new TreeMap<>(Comparator.reverseOrder());
        for (int i = 0; i < mochiCount; i++) {
            int mochi = sc.nextInt();
            if (mochiMap.containsKey(mochi)) {
                mochiMap.put(mochi, (mochiMap.get(mochi) + 1));
            } else {
                mochiMap.put(mochi, 1);
            }
        }
        
        int result = 0;
        for(Integer mochiKey : mochiMap.keySet()) {
            result++;
        }
        System.out.println(result);
    }
}
