import 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 s[] = new int[N];
      int answer=0;
      int d;
      int A;
		for (int i = 0; i < K; i++) {
			d = scan.nextInt();
			for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			}
		}
		for (int i = 0; i < N; i++) {
			if (s[i] == 0) {
				answer += 1;
			}
		}
		System.out.println(answer);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int s[] = new int[N];
      int answer=0;
      int d;
      int A;
		for (int i = 0; i < K; i++) {
			d = scan.nextInt();
			for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			}
		}
		for (int i = 0; i < N; i++) {
			if (s[i] == 0) {
				answer += 1;
			}
		}
		System.out.println(answer);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int s[] = new int[N];
      int answer=0;
      int d;
      int A;
		for (int i = 0; i < K; i++) {
			d = scan.nextInt();
			for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			}
		}
		for (int i = 0; i < N; i++) {
			if (s[i] == 0) {
				answer += 1;
			}
		}
		System.out.println(answer);
	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int s[] = new int[N];
      int answer=0;
      int d;
      int A;
		for (int i = 0; i < K; i++) {
			d = scan.nextInt();
			for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			}
		}
		for (int i = 0; i < N; i++) {
			if (s[i] == 0) {
				answer += 1;
			}
		}
		System.out.println(answer);
	} 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 s[] = new int[N]; s new int[N] N int answer=0; answer 0 int d; d int A; A for (int i = 0; i < K; i++) {
			d = scan.nextInt();
			for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			}
		} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
			d = scan.nextInt();
			for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			}
		} {
			d = scan.nextInt();
			for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			}
		} d = scan.nextInt() d scan.nextInt() scan.nextInt scan for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			} int y = 0; int y = 0; y 0 y < d y d y++ y++ y {
				A = scan.nextInt();
				s[A - 1]++;
			} {
				A = scan.nextInt();
				s[A - 1]++;
			} A = scan.nextInt() A scan.nextInt() scan.nextInt scan s[A - 1]++ s[A - 1] s A - 1 A 1 for (int i = 0; i < N; i++) {
			if (s[i] == 0) {
				answer += 1;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if (s[i] == 0) {
				answer += 1;
			}
		} {
			if (s[i] == 0) {
				answer += 1;
			}
		} if (s[i] == 0) {
				answer += 1;
			} s[i] == 0 s[i] s i 0 {
				answer += 1;
			} answer += 1 answer 1 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) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int s[] = new int[N];
      int answer=0;
      int d;
      int A;
		for (int i = 0; i < K; i++) {
			d = scan.nextInt();
			for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			}
		}
		for (int i = 0; i < N; i++) {
			if (s[i] == 0) {
				answer += 1;
			}
		}
		System.out.println(answer);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int s[] = new int[N];
      int answer=0;
      int d;
      int A;
		for (int i = 0; i < K; i++) {
			d = scan.nextInt();
			for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			}
		}
		for (int i = 0; i < N; i++) {
			if (s[i] == 0) {
				answer += 1;
			}
		}
		System.out.println(answer);
	}
} Main
import 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 s[] = new int[N];
      int answer=0;
      int d;
      int A;
		for (int i = 0; i < K; i++) {
			d = scan.nextInt();
			for (int y = 0; y < d; y++) {
				A = scan.nextInt();
				s[A - 1]++;
			}
		}
		for (int i = 0; i < N; i++) {
			if (s[i] == 0) {
				answer += 1;
			}
		}
		System.out.println(answer);
	}
}
