import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int n = kb.nextInt();
		int k = kb.nextInt();
		ArrayList<Integer> a = new ArrayList<Integer>();
		for (int i = 0; i < k; i++) {
			int d = kb.nextInt();
			for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			}
		}
		int count = n;
		for (int i = 1; i <= n; i++) {
			for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			}
		}
		System.out.println(count);

		kb.close();
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int n = kb.nextInt();
		int k = kb.nextInt();
		ArrayList<Integer> a = new ArrayList<Integer>();
		for (int i = 0; i < k; i++) {
			int d = kb.nextInt();
			for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			}
		}
		int count = n;
		for (int i = 1; i <= n; i++) {
			for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			}
		}
		System.out.println(count);

		kb.close();
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int n = kb.nextInt();
		int k = kb.nextInt();
		ArrayList<Integer> a = new ArrayList<Integer>();
		for (int i = 0; i < k; i++) {
			int d = kb.nextInt();
			for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			}
		}
		int count = n;
		for (int i = 1; i <= n; i++) {
			for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			}
		}
		System.out.println(count);

		kb.close();
	} main {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int n = kb.nextInt();
		int k = kb.nextInt();
		ArrayList<Integer> a = new ArrayList<Integer>();
		for (int i = 0; i < k; i++) {
			int d = kb.nextInt();
			for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			}
		}
		int count = n;
		for (int i = 1; i <= n; i++) {
			for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			}
		}
		System.out.println(count);

		kb.close();
	} Scanner kb = new Scanner(System.in); kb new Scanner(System.in) int n = kb.nextInt(); n kb.nextInt() kb.nextInt kb int k = kb.nextInt(); k kb.nextInt() kb.nextInt kb ArrayList<Integer> a = new ArrayList<Integer>(); a new ArrayList<Integer>() for (int i = 0; i < k; i++) {
			int d = kb.nextInt();
			for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			}
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			int d = kb.nextInt();
			for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			}
		} {
			int d = kb.nextInt();
			for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			}
		} int d = kb.nextInt(); d kb.nextInt() kb.nextInt kb for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				int l = kb.nextInt();
				a.add(l);
			} {
				int l = kb.nextInt();
				a.add(l);
			} int l = kb.nextInt(); l kb.nextInt() kb.nextInt kb a.add(l) a.add a l int count = n; count n for (int i = 1; i <= n; i++) {
			for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			}
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			}
		} {
			for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			}
		} for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			} int e a {
				if (i == e) {
					count -= 1;
					break;
				}
			} {
				if (i == e) {
					count -= 1;
					break;
				}
			} if (i == e) {
					count -= 1;
					break;
				} i == e i e {
					count -= 1;
					break;
				} count -= 1 count 1 break; System.out.println(count) System.out.println System.out System System.out count kb.close() kb.close kb String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int n = kb.nextInt();
		int k = kb.nextInt();
		ArrayList<Integer> a = new ArrayList<Integer>();
		for (int i = 0; i < k; i++) {
			int d = kb.nextInt();
			for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			}
		}
		int count = n;
		for (int i = 1; i <= n; i++) {
			for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			}
		}
		System.out.println(count);

		kb.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int n = kb.nextInt();
		int k = kb.nextInt();
		ArrayList<Integer> a = new ArrayList<Integer>();
		for (int i = 0; i < k; i++) {
			int d = kb.nextInt();
			for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			}
		}
		int count = n;
		for (int i = 1; i <= n; i++) {
			for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			}
		}
		System.out.println(count);

		kb.close();
	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int n = kb.nextInt();
		int k = kb.nextInt();
		ArrayList<Integer> a = new ArrayList<Integer>();
		for (int i = 0; i < k; i++) {
			int d = kb.nextInt();
			for (int j = 0; j < d; j++) {
				int l = kb.nextInt();
				a.add(l);
			}
		}
		int count = n;
		for (int i = 1; i <= n; i++) {
			for (int e : a) {
				if (i == e) {
					count -= 1;
					break;
				}
			}
		}
		System.out.println(count);

		kb.close();
	}

}
