import java.util.HashSet;
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();
		HashSet hasCandy = new HashSet();

		for (int j = 0; j < K; j++){
			int d = scan.nextInt();
			for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			}
		}

		System.out.println(N - hasCandy.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 scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		HashSet hasCandy = new HashSet();

		for (int j = 0; j < K; j++){
			int d = scan.nextInt();
			for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			}
		}

		System.out.println(N - hasCandy.size());
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		HashSet hasCandy = new HashSet();

		for (int j = 0; j < K; j++){
			int d = scan.nextInt();
			for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			}
		}

		System.out.println(N - hasCandy.size());
	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		HashSet hasCandy = new HashSet();

		for (int j = 0; j < K; j++){
			int d = scan.nextInt();
			for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			}
		}

		System.out.println(N - hasCandy.size());
	} 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 HashSet hasCandy = new HashSet(); hasCandy new HashSet() for (int j = 0; j < K; j++){
			int d = scan.nextInt();
			for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			}
		} int j = 0; int j = 0; j 0 j < K j K j++ j++ j {
			int d = scan.nextInt();
			for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			}
		} {
			int d = scan.nextInt();
			for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			}
		} int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			} int i = 0; int i = 0; i 0 i < d i d i++ i++ i {
				int A= scan.nextInt();
				hasCandy.add(A);
			} {
				int A= scan.nextInt();
				hasCandy.add(A);
			} int A= scan.nextInt(); A scan.nextInt() scan.nextInt scan hasCandy.add(A) hasCandy.add hasCandy A System.out.println(N - hasCandy.size()) System.out.println System.out System System.out N - hasCandy.size() N hasCandy.size() hasCandy.size hasCandy 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();
		HashSet hasCandy = new HashSet();

		for (int j = 0; j < K; j++){
			int d = scan.nextInt();
			for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			}
		}

		System.out.println(N - hasCandy.size());
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		HashSet hasCandy = new HashSet();

		for (int j = 0; j < K; j++){
			int d = scan.nextInt();
			for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			}
		}

		System.out.println(N - hasCandy.size());
	}
} Main
import java.util.HashSet;
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();
		HashSet hasCandy = new HashSet();

		for (int j = 0; j < K; j++){
			int d = scan.nextInt();
			for (int i = 0; i < d; i++){
				int A= scan.nextInt();
				hasCandy.add(A);
			}
		}

		System.out.println(N - hasCandy.size());
	}
}