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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), k = sc.nextInt();
		HashSet<Integer> owners = new HashSet<Integer>();
		for (int i = 0; i < k; ++i) {
			for (int j = 0, d = sc.nextInt(); j < d; ++j) {
				owners.add(sc.nextInt());
			}
		}
		System.out.println(n - owners.size());
	}
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {

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

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), k = sc.nextInt();
		HashSet<Integer> owners = new HashSet<Integer>();
		for (int i = 0; i < k; ++i) {
			for (int j = 0, d = sc.nextInt(); j < d; ++j) {
				owners.add(sc.nextInt());
			}
		}
		System.out.println(n - owners.size());
	}
} Main
import java.util.HashSet;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), k = sc.nextInt();
		HashSet<Integer> owners = new HashSet<Integer>();
		for (int i = 0; i < k; ++i) {
			for (int j = 0, d = sc.nextInt(); j < d; ++j) {
				owners.add(sc.nextInt());
			}
		}
		System.out.println(n - owners.size());
	}
}
