
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int ans = 0;

		int number[] = new int[N];

		for (int i = 0; i < N; i++) {
			number[i] = 0;
		}

		for (int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			}
		}


		for (int i = 0; i < N; i++) {
			if (number[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int ans = 0;

		int number[] = new int[N];

		for (int i = 0; i < N; i++) {
			number[i] = 0;
		}

		for (int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			}
		}


		for (int i = 0; i < N; i++) {
			if (number[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
		scan.close();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int ans = 0;

		int number[] = new int[N];

		for (int i = 0; i < N; i++) {
			number[i] = 0;
		}

		for (int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			}
		}


		for (int i = 0; i < N; i++) {
			if (number[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int ans = 0;

		int number[] = new int[N];

		for (int i = 0; i < N; i++) {
			number[i] = 0;
		}

		for (int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			}
		}


		for (int i = 0; i < N; i++) {
			if (number[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan int ans = 0; ans 0 int number[] = new int[N]; number new int[N] N for (int i = 0; i < N; i++) {
			number[i] = 0;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			number[i] = 0;
		} {
			number[i] = 0;
		} number[i] = 0 number[i] number i 0 for (int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			}
		} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
			int d = scan.nextInt();
			for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			}
		} {
			int d = scan.nextInt();
			for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			}
		} int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			} int j =0; int j =0; j 0 j<d j d j++ j++ j {
				number[scan.nextInt()-1]++;
			} {
				number[scan.nextInt()-1]++;
			} number[scan.nextInt()-1]++ number[scan.nextInt()-1] number scan.nextInt()-1 scan.nextInt() scan.nextInt scan 1 for (int i = 0; i < N; i++) {
			if (number[i] == 0) {
				ans++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if (number[i] == 0) {
				ans++;
			}
		} {
			if (number[i] == 0) {
				ans++;
			}
		} if (number[i] == 0) {
				ans++;
			} number[i] == 0 number[i] number i 0 {
				ans++;
			} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int ans = 0;

		int number[] = new int[N];

		for (int i = 0; i < N; i++) {
			number[i] = 0;
		}

		for (int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			}
		}


		for (int i = 0; i < N; i++) {
			if (number[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
		scan.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int ans = 0;

		int number[] = new int[N];

		for (int i = 0; i < N; i++) {
			number[i] = 0;
		}

		for (int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			}
		}


		for (int i = 0; i < N; i++) {
			if (number[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
		scan.close();
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int ans = 0;

		int number[] = new int[N];

		for (int i = 0; i < N; i++) {
			number[i] = 0;
		}

		for (int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j =0;j<d;j++) {
				number[scan.nextInt()-1]++;
			}
		}


		for (int i = 0; i < N; i++) {
			if (number[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
		scan.close();
	}
}
