import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		try {
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);

			int num = Integer.parseInt(br.readLine());
			ArrayList<Integer> list = new ArrayList<Integer>();

			int answer = 0;

			for (int i = 0; i < num; i++) {
				list.add(Integer.valueOf(br.readLine()));
			}

			Collections.sort(list, Collections.reverseOrder());

			Integer mochiLen = 0;
			for (Integer integer : list) {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			}

			System.out.println(answer);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		try {
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);

			int num = Integer.parseInt(br.readLine());
			ArrayList<Integer> list = new ArrayList<Integer>();

			int answer = 0;

			for (int i = 0; i < num; i++) {
				list.add(Integer.valueOf(br.readLine()));
			}

			Collections.sort(list, Collections.reverseOrder());

			Integer mochiLen = 0;
			for (Integer integer : list) {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			}

			System.out.println(answer);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		try {
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);

			int num = Integer.parseInt(br.readLine());
			ArrayList<Integer> list = new ArrayList<Integer>();

			int answer = 0;

			for (int i = 0; i < num; i++) {
				list.add(Integer.valueOf(br.readLine()));
			}

			Collections.sort(list, Collections.reverseOrder());

			Integer mochiLen = 0;
			for (Integer integer : list) {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			}

			System.out.println(answer);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		try {
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);

			int num = Integer.parseInt(br.readLine());
			ArrayList<Integer> list = new ArrayList<Integer>();

			int answer = 0;

			for (int i = 0; i < num; i++) {
				list.add(Integer.valueOf(br.readLine()));
			}

			Collections.sort(list, Collections.reverseOrder());

			Integer mochiLen = 0;
			for (Integer integer : list) {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			}

			System.out.println(answer);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
	} try {
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);

			int num = Integer.parseInt(br.readLine());
			ArrayList<Integer> list = new ArrayList<Integer>();

			int answer = 0;

			for (int i = 0; i < num; i++) {
				list.add(Integer.valueOf(br.readLine()));
			}

			Collections.sort(list, Collections.reverseOrder());

			Integer mochiLen = 0;
			for (Integer integer : list) {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			}

			System.out.println(answer);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		} Exception e {
			// TODO: handle exception
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);

			int num = Integer.parseInt(br.readLine());
			ArrayList<Integer> list = new ArrayList<Integer>();

			int answer = 0;

			for (int i = 0; i < num; i++) {
				list.add(Integer.valueOf(br.readLine()));
			}

			Collections.sort(list, Collections.reverseOrder());

			Integer mochiLen = 0;
			for (Integer integer : list) {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			}

			System.out.println(answer);
		} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) int num = Integer.parseInt(br.readLine()); num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() int answer = 0; answer 0 for (int i = 0; i < num; i++) {
				list.add(Integer.valueOf(br.readLine()));
			} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
				list.add(Integer.valueOf(br.readLine()));
			} {
				list.add(Integer.valueOf(br.readLine()));
			} list.add(Integer.valueOf(br.readLine())) list.add list Integer.valueOf(br.readLine()) Integer.valueOf Integer br.readLine() br.readLine br Collections.sort(list, Collections.reverseOrder()) Collections.sort Collections list Collections.reverseOrder() Collections.reverseOrder Collections Integer mochiLen = 0; mochiLen 0 for (Integer integer : list) {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			} Integer integer list {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			} {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			} if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				} !integer.equals(mochiLen) integer.equals(mochiLen) integer.equals integer mochiLen {
					answer++;
					mochiLen = integer;
				} answer++ answer mochiLen = integer mochiLen integer System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		try {
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);

			int num = Integer.parseInt(br.readLine());
			ArrayList<Integer> list = new ArrayList<Integer>();

			int answer = 0;

			for (int i = 0; i < num; i++) {
				list.add(Integer.valueOf(br.readLine()));
			}

			Collections.sort(list, Collections.reverseOrder());

			Integer mochiLen = 0;
			for (Integer integer : list) {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			}

			System.out.println(answer);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		try {
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);

			int num = Integer.parseInt(br.readLine());
			ArrayList<Integer> list = new ArrayList<Integer>();

			int answer = 0;

			for (int i = 0; i < num; i++) {
				list.add(Integer.valueOf(br.readLine()));
			}

			Collections.sort(list, Collections.reverseOrder());

			Integer mochiLen = 0;
			for (Integer integer : list) {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			}

			System.out.println(answer);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		try {
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);

			int num = Integer.parseInt(br.readLine());
			ArrayList<Integer> list = new ArrayList<Integer>();

			int answer = 0;

			for (int i = 0; i < num; i++) {
				list.add(Integer.valueOf(br.readLine()));
			}

			Collections.sort(list, Collections.reverseOrder());

			Integer mochiLen = 0;
			for (Integer integer : list) {
				if (!integer.equals(mochiLen)) {
					answer++;
					mochiLen = integer;
				}
			}

			System.out.println(answer);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
	}

}
