import java.util.*;

public class Main{
	
	public static void main (String[] args) {
		
		Scanner scanner = new Scanner (System.in);
		
		int totalMochi = scanner.nextInt();
		ArrayList <Integer> mochiList = new ArrayList <Integer>();
		
		for (int index=0; index<totalMochi; index++) {
			int mochi = scanner.nextInt();
			
			if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			}
		}
		
		System.out.println(mochiList.size());
	}
	
	private static boolean hantei (int mochi, ArrayList <Integer> mochiList) {
		
		boolean hantei = true;
		for (int index=0; index<mochiList.size(); index++) {
			int temp = mochiList.get(index);
			
			if (temp==mochi) {
				hantei=false;
			}
		}
		return hantei;
	}
} import java.util.*; util.* java public class Main{
	
	public static void main (String[] args) {
		
		Scanner scanner = new Scanner (System.in);
		
		int totalMochi = scanner.nextInt();
		ArrayList <Integer> mochiList = new ArrayList <Integer>();
		
		for (int index=0; index<totalMochi; index++) {
			int mochi = scanner.nextInt();
			
			if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			}
		}
		
		System.out.println(mochiList.size());
	}
	
	private static boolean hantei (int mochi, ArrayList <Integer> mochiList) {
		
		boolean hantei = true;
		for (int index=0; index<mochiList.size(); index++) {
			int temp = mochiList.get(index);
			
			if (temp==mochi) {
				hantei=false;
			}
		}
		return hantei;
	}
} Main public static void main (String[] args) {
		
		Scanner scanner = new Scanner (System.in);
		
		int totalMochi = scanner.nextInt();
		ArrayList <Integer> mochiList = new ArrayList <Integer>();
		
		for (int index=0; index<totalMochi; index++) {
			int mochi = scanner.nextInt();
			
			if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			}
		}
		
		System.out.println(mochiList.size());
	} main {
		
		Scanner scanner = new Scanner (System.in);
		
		int totalMochi = scanner.nextInt();
		ArrayList <Integer> mochiList = new ArrayList <Integer>();
		
		for (int index=0; index<totalMochi; index++) {
			int mochi = scanner.nextInt();
			
			if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			}
		}
		
		System.out.println(mochiList.size());
	} Scanner scanner = new Scanner (System.in); scanner new Scanner (System.in) int totalMochi = scanner.nextInt(); totalMochi scanner.nextInt() scanner.nextInt scanner ArrayList <Integer> mochiList = new ArrayList <Integer>(); mochiList new ArrayList <Integer>() for (int index=0; index<totalMochi; index++) {
			int mochi = scanner.nextInt();
			
			if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			}
		} int index=0; int index=0; index 0 index<totalMochi index totalMochi index++ index++ index {
			int mochi = scanner.nextInt();
			
			if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			}
		} {
			int mochi = scanner.nextInt();
			
			if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			}
		} int mochi = scanner.nextInt(); mochi scanner.nextInt() scanner.nextInt scanner if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			} hantei(mochi,mochiList) hantei mochi mochiList {
				mochiList.add(mochi);
			} mochiList.add(mochi) mochiList.add mochiList mochi System.out.println(mochiList.size()) System.out.println System.out System System.out mochiList.size() mochiList.size mochiList String[] args args private static boolean hantei (int mochi, ArrayList <Integer> mochiList) {
		
		boolean hantei = true;
		for (int index=0; index<mochiList.size(); index++) {
			int temp = mochiList.get(index);
			
			if (temp==mochi) {
				hantei=false;
			}
		}
		return hantei;
	} hantei {
		
		boolean hantei = true;
		for (int index=0; index<mochiList.size(); index++) {
			int temp = mochiList.get(index);
			
			if (temp==mochi) {
				hantei=false;
			}
		}
		return hantei;
	} boolean hantei = true; hantei true for (int index=0; index<mochiList.size(); index++) {
			int temp = mochiList.get(index);
			
			if (temp==mochi) {
				hantei=false;
			}
		} int index=0; int index=0; index 0 index<mochiList.size() index mochiList.size() mochiList.size mochiList index++ index++ index {
			int temp = mochiList.get(index);
			
			if (temp==mochi) {
				hantei=false;
			}
		} {
			int temp = mochiList.get(index);
			
			if (temp==mochi) {
				hantei=false;
			}
		} int temp = mochiList.get(index); temp mochiList.get(index) mochiList.get mochiList index if (temp==mochi) {
				hantei=false;
			} temp==mochi temp mochi {
				hantei=false;
			} hantei=false hantei false return hantei; hantei int mochi mochi ArrayList <Integer> mochiList mochiList public class Main{
	
	public static void main (String[] args) {
		
		Scanner scanner = new Scanner (System.in);
		
		int totalMochi = scanner.nextInt();
		ArrayList <Integer> mochiList = new ArrayList <Integer>();
		
		for (int index=0; index<totalMochi; index++) {
			int mochi = scanner.nextInt();
			
			if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			}
		}
		
		System.out.println(mochiList.size());
	}
	
	private static boolean hantei (int mochi, ArrayList <Integer> mochiList) {
		
		boolean hantei = true;
		for (int index=0; index<mochiList.size(); index++) {
			int temp = mochiList.get(index);
			
			if (temp==mochi) {
				hantei=false;
			}
		}
		return hantei;
	}
} public class Main{
	
	public static void main (String[] args) {
		
		Scanner scanner = new Scanner (System.in);
		
		int totalMochi = scanner.nextInt();
		ArrayList <Integer> mochiList = new ArrayList <Integer>();
		
		for (int index=0; index<totalMochi; index++) {
			int mochi = scanner.nextInt();
			
			if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			}
		}
		
		System.out.println(mochiList.size());
	}
	
	private static boolean hantei (int mochi, ArrayList <Integer> mochiList) {
		
		boolean hantei = true;
		for (int index=0; index<mochiList.size(); index++) {
			int temp = mochiList.get(index);
			
			if (temp==mochi) {
				hantei=false;
			}
		}
		return hantei;
	}
} Main
import java.util.*;

public class Main{
	
	public static void main (String[] args) {
		
		Scanner scanner = new Scanner (System.in);
		
		int totalMochi = scanner.nextInt();
		ArrayList <Integer> mochiList = new ArrayList <Integer>();
		
		for (int index=0; index<totalMochi; index++) {
			int mochi = scanner.nextInt();
			
			if (hantei(mochi,mochiList)) {
				mochiList.add(mochi);
			}
		}
		
		System.out.println(mochiList.size());
	}
	
	private static boolean hantei (int mochi, ArrayList <Integer> mochiList) {
		
		boolean hantei = true;
		for (int index=0; index<mochiList.size(); index++) {
			int temp = mochiList.get(index);
			
			if (temp==mochi) {
				hantei=false;
			}
		}
		return hantei;
	}
}