
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();
		int K = sc.nextInt();
		HashSet<Integer> hs = new HashSet<Integer>();
		for(int i = 1; i <= K;i++) {
			int d = sc.nextInt();
			for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			}
		}
		System.out.println(N - hs.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();
		int K = sc.nextInt();
		HashSet<Integer> hs = new HashSet<Integer>();
		for(int i = 1; i <= K;i++) {
			int d = sc.nextInt();
			for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			}
		}
		System.out.println(N - hs.size());
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		HashSet<Integer> hs = new HashSet<Integer>();
		for(int i = 1; i <= K;i++) {
			int d = sc.nextInt();
			for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			}
		}
		System.out.println(N - hs.size());
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		HashSet<Integer> hs = new HashSet<Integer>();
		for(int i = 1; i <= K;i++) {
			int d = sc.nextInt();
			for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			}
		}
		System.out.println(N - hs.size());
	} 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 HashSet<Integer> hs = new HashSet<Integer>(); hs new HashSet<Integer>() for(int i = 1; i <= K;i++) {
			int d = sc.nextInt();
			for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			}
		} int i = 1; int i = 1; i 1 i <= K i K i++ i++ i {
			int d = sc.nextInt();
			for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			}
		} {
			int d = sc.nextInt();
			for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			} int j = 1; int j = 1; j 1 j <= d j d j++ j++ j {
				int tmp = sc.nextInt();
				hs.add(tmp);
			} {
				int tmp = sc.nextInt();
				hs.add(tmp);
			} int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc hs.add(tmp) hs.add hs tmp System.out.println(N - hs.size()) System.out.println System.out System System.out N - hs.size() N hs.size() hs.size hs 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();
		HashSet<Integer> hs = new HashSet<Integer>();
		for(int i = 1; i <= K;i++) {
			int d = sc.nextInt();
			for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			}
		}
		System.out.println(N - hs.size());
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		HashSet<Integer> hs = new HashSet<Integer>();
		for(int i = 1; i <= K;i++) {
			int d = sc.nextInt();
			for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			}
		}
		System.out.println(N - hs.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();
		int K = sc.nextInt();
		HashSet<Integer> hs = new HashSet<Integer>();
		for(int i = 1; i <= K;i++) {
			int d = sc.nextInt();
			for(int j = 1; j <= d;j++) {
				int tmp = sc.nextInt();
				hs.add(tmp);
			}
		}
		System.out.println(N - hs.size());
	}

}
