import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int mochiArray[] = new int[n];
        
        for (int i=0; i < n; i++){
            int scale = sc.nextInt();
            boolean exist = true;
            
            for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            }
            if (exist) count++;
            mochiArray[i] = scale;
        }
        
        System.out.println(count);
        sc.close();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int mochiArray[] = new int[n];
        
        for (int i=0; i < n; i++){
            int scale = sc.nextInt();
            boolean exist = true;
            
            for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            }
            if (exist) count++;
            mochiArray[i] = scale;
        }
        
        System.out.println(count);
        sc.close();
    }
} Main public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int mochiArray[] = new int[n];
        
        for (int i=0; i < n; i++){
            int scale = sc.nextInt();
            boolean exist = true;
            
            for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            }
            if (exist) count++;
            mochiArray[i] = scale;
        }
        
        System.out.println(count);
        sc.close();
    } main {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int mochiArray[] = new int[n];
        
        for (int i=0; i < n; i++){
            int scale = sc.nextInt();
            boolean exist = true;
            
            for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            }
            if (exist) count++;
            mochiArray[i] = scale;
        }
        
        System.out.println(count);
        sc.close();
    } int count = 0; count 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int mochiArray[] = new int[n]; mochiArray new int[n] n for (int i=0; i < n; i++){
            int scale = sc.nextInt();
            boolean exist = true;
            
            for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            }
            if (exist) count++;
            mochiArray[i] = scale;
        } int i=0; int i=0; i 0 i < n i n i++ i++ i {
            int scale = sc.nextInt();
            boolean exist = true;
            
            for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            }
            if (exist) count++;
            mochiArray[i] = scale;
        } {
            int scale = sc.nextInt();
            boolean exist = true;
            
            for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            }
            if (exist) count++;
            mochiArray[i] = scale;
        } int scale = sc.nextInt(); scale sc.nextInt() sc.nextInt sc boolean exist = true; exist true for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            } int mochi mochiArray {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            } {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            } if (mochi == scale) {
                    exist = false;
                    break;
                } mochi == scale mochi scale {
                    exist = false;
                    break;
                } exist = false exist false break; if (exist) count++; exist count++ count mochiArray[i] = scale mochiArray[i] mochiArray i scale System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int mochiArray[] = new int[n];
        
        for (int i=0; i < n; i++){
            int scale = sc.nextInt();
            boolean exist = true;
            
            for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            }
            if (exist) count++;
            mochiArray[i] = scale;
        }
        
        System.out.println(count);
        sc.close();
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int mochiArray[] = new int[n];
        
        for (int i=0; i < n; i++){
            int scale = sc.nextInt();
            boolean exist = true;
            
            for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            }
            if (exist) count++;
            mochiArray[i] = scale;
        }
        
        System.out.println(count);
        sc.close();
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        int count = 0;
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int mochiArray[] = new int[n];
        
        for (int i=0; i < n; i++){
            int scale = sc.nextInt();
            boolean exist = true;
            
            for (int mochi : mochiArray) {
                if (mochi == scale) {
                    exist = false;
                    break;
                }
            }
            if (exist) count++;
            mochiArray[i] = scale;
        }
        
        System.out.println(count);
        sc.close();
    }
}
