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 sunuke = Integer.parseInt(sc.next());
		int okasi = Integer.parseInt(sc.next());
		Set<Integer> count = new HashSet();

		for (int i = 0; i < okasi; i++) {
			int okasi2 = Integer.parseInt(sc.next());
			for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			}
		}

		System.out.println(sunuke - count.size());

	}


} 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 sunuke = Integer.parseInt(sc.next());
		int okasi = Integer.parseInt(sc.next());
		Set<Integer> count = new HashSet();

		for (int i = 0; i < okasi; i++) {
			int okasi2 = Integer.parseInt(sc.next());
			for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			}
		}

		System.out.println(sunuke - count.size());

	}


} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int sunuke = Integer.parseInt(sc.next());
		int okasi = Integer.parseInt(sc.next());
		Set<Integer> count = new HashSet();

		for (int i = 0; i < okasi; i++) {
			int okasi2 = Integer.parseInt(sc.next());
			for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			}
		}

		System.out.println(sunuke - count.size());

	} main {
		Scanner sc = new Scanner(System.in);
		int sunuke = Integer.parseInt(sc.next());
		int okasi = Integer.parseInt(sc.next());
		Set<Integer> count = new HashSet();

		for (int i = 0; i < okasi; i++) {
			int okasi2 = Integer.parseInt(sc.next());
			for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			}
		}

		System.out.println(sunuke - count.size());

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int sunuke = Integer.parseInt(sc.next()); sunuke Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int okasi = Integer.parseInt(sc.next()); okasi Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Set<Integer> count = new HashSet(); count new HashSet() for (int i = 0; i < okasi; i++) {
			int okasi2 = Integer.parseInt(sc.next());
			for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			}
		} int i = 0; int i = 0; i 0 i < okasi i okasi i++ i++ i {
			int okasi2 = Integer.parseInt(sc.next());
			for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			}
		} {
			int okasi2 = Integer.parseInt(sc.next());
			for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			}
		} int okasi2 = Integer.parseInt(sc.next()); okasi2 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			} int j = 0; int j = 0; j 0 j < okasi2 j okasi2 j++ j++ j {
				count.add(sc.nextInt());
			} {
				count.add(sc.nextInt());
			} count.add(sc.nextInt()) count.add count sc.nextInt() sc.nextInt sc System.out.println(sunuke - count.size()) System.out.println System.out System System.out sunuke - count.size() sunuke count.size() count.size count String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int sunuke = Integer.parseInt(sc.next());
		int okasi = Integer.parseInt(sc.next());
		Set<Integer> count = new HashSet();

		for (int i = 0; i < okasi; i++) {
			int okasi2 = Integer.parseInt(sc.next());
			for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			}
		}

		System.out.println(sunuke - count.size());

	}


} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int sunuke = Integer.parseInt(sc.next());
		int okasi = Integer.parseInt(sc.next());
		Set<Integer> count = new HashSet();

		for (int i = 0; i < okasi; i++) {
			int okasi2 = Integer.parseInt(sc.next());
			for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			}
		}

		System.out.println(sunuke - count.size());

	}


} 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 sunuke = Integer.parseInt(sc.next());
		int okasi = Integer.parseInt(sc.next());
		Set<Integer> count = new HashSet();

		for (int i = 0; i < okasi; i++) {
			int okasi2 = Integer.parseInt(sc.next());
			for(int j = 0; j < okasi2; j++) {
				count.add(sc.nextInt());
			}
		}

		System.out.println(sunuke - count.size());

	}


}