import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

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

		// 入力値の取得
		int N = sc.nextInt();
		int K = sc.nextInt();
		Set<Integer> kids = new HashSet<>();
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			}
		}
		// 結果の出力
		System.out.println(N - kids.size());

		sc.close();
	}
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		int N = sc.nextInt();
		int K = sc.nextInt();
		Set<Integer> kids = new HashSet<>();
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			}
		}
		// 結果の出力
		System.out.println(N - kids.size());

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

		// 入力値の取得
		int N = sc.nextInt();
		int K = sc.nextInt();
		Set<Integer> kids = new HashSet<>();
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			}
		}
		// 結果の出力
		System.out.println(N - kids.size());

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

		// 入力値の取得
		int N = sc.nextInt();
		int K = sc.nextInt();
		Set<Integer> kids = new HashSet<>();
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			}
		}
		// 結果の出力
		System.out.println(N - kids.size());

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc Set<Integer> kids = new HashSet<>(); kids new HashSet<>() for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			}
		} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			}
		} {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				kids.add(sc.nextInt());
			} {
				kids.add(sc.nextInt());
			} kids.add(sc.nextInt()) kids.add kids sc.nextInt() sc.nextInt sc System.out.println(N - kids.size()) System.out.println System.out System System.out N - kids.size() N kids.size() kids.size kids sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		int N = sc.nextInt();
		int K = sc.nextInt();
		Set<Integer> kids = new HashSet<>();
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			}
		}
		// 結果の出力
		System.out.println(N - kids.size());

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

		// 入力値の取得
		int N = sc.nextInt();
		int K = sc.nextInt();
		Set<Integer> kids = new HashSet<>();
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			}
		}
		// 結果の出力
		System.out.println(N - kids.size());

		sc.close();
	}
} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

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

		// 入力値の取得
		int N = sc.nextInt();
		int K = sc.nextInt();
		Set<Integer> kids = new HashSet<>();
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				kids.add(sc.nextInt());
			}
		}
		// 結果の出力
		System.out.println(N - kids.size());

		sc.close();
	}
}
