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 b;
		int c;
		boolean[] a = new boolean[n];
		int ans = 0;

		for(int i = 0;i < k;i++) {
			b = scan.nextInt();
			for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			}
		}

		for(int i = 0;i < n;i++) {
			if(!a[i]) {
				ans ++;
			}
		}

		System.out.println(ans);

	}
} 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 b;
		int c;
		boolean[] a = new boolean[n];
		int ans = 0;

		for(int i = 0;i < k;i++) {
			b = scan.nextInt();
			for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			}
		}

		for(int i = 0;i < n;i++) {
			if(!a[i]) {
				ans ++;
			}
		}

		System.out.println(ans);

	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int k = scan.nextInt();
		int b;
		int c;
		boolean[] a = new boolean[n];
		int ans = 0;

		for(int i = 0;i < k;i++) {
			b = scan.nextInt();
			for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			}
		}

		for(int i = 0;i < n;i++) {
			if(!a[i]) {
				ans ++;
			}
		}

		System.out.println(ans);

	} main {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int k = scan.nextInt();
		int b;
		int c;
		boolean[] a = new boolean[n];
		int ans = 0;

		for(int i = 0;i < k;i++) {
			b = scan.nextInt();
			for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			}
		}

		for(int i = 0;i < n;i++) {
			if(!a[i]) {
				ans ++;
			}
		}

		System.out.println(ans);

	} 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 b; b int c; c boolean[] a = new boolean[n]; a new boolean[n] n int ans = 0; ans 0 for(int i = 0;i < k;i++) {
			b = scan.nextInt();
			for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			}
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			b = scan.nextInt();
			for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			}
		} {
			b = scan.nextInt();
			for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			}
		} b = scan.nextInt() b scan.nextInt() scan.nextInt scan for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			} int j = 0; int j = 0; j 0 j < b j b j++ j++ j {
				c = scan.nextInt();
				a[c - 1] = true;
			} {
				c = scan.nextInt();
				a[c - 1] = true;
			} c = scan.nextInt() c scan.nextInt() scan.nextInt scan a[c - 1] = true a[c - 1] a c - 1 c 1 true for(int i = 0;i < n;i++) {
			if(!a[i]) {
				ans ++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if(!a[i]) {
				ans ++;
			}
		} {
			if(!a[i]) {
				ans ++;
			}
		} if(!a[i]) {
				ans ++;
			} !a[i] a[i] a i {
				ans ++;
			} ans ++ ans System.out.println(ans) System.out.println System.out System System.out ans 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 b;
		int c;
		boolean[] a = new boolean[n];
		int ans = 0;

		for(int i = 0;i < k;i++) {
			b = scan.nextInt();
			for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			}
		}

		for(int i = 0;i < n;i++) {
			if(!a[i]) {
				ans ++;
			}
		}

		System.out.println(ans);

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

		int n = scan.nextInt();
		int k = scan.nextInt();
		int b;
		int c;
		boolean[] a = new boolean[n];
		int ans = 0;

		for(int i = 0;i < k;i++) {
			b = scan.nextInt();
			for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			}
		}

		for(int i = 0;i < n;i++) {
			if(!a[i]) {
				ans ++;
			}
		}

		System.out.println(ans);

	}
} 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 b;
		int c;
		boolean[] a = new boolean[n];
		int ans = 0;

		for(int i = 0;i < k;i++) {
			b = scan.nextInt();
			for(int j = 0;j < b;j++) {
				c = scan.nextInt();
				a[c - 1] = true;
			}
		}

		for(int i = 0;i < n;i++) {
			if(!a[i]) {
				ans ++;
			}
		}

		System.out.println(ans);

	}
}