import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 人数の入力
		int ninzu = sc.nextInt();
		int okasi = sc.nextInt();
      	int[] sum = new int[ninzu];
      	for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            }
        }
      	int ans = 0;
      	for (int i=0; i<sum.length; i++) {
          if (sum[i] == 0) {
            ans += 1;
          }
        }
		// 出力
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 人数の入力
		int ninzu = sc.nextInt();
		int okasi = sc.nextInt();
      	int[] sum = new int[ninzu];
      	for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            }
        }
      	int ans = 0;
      	for (int i=0; i<sum.length; i++) {
          if (sum[i] == 0) {
            ans += 1;
          }
        }
		// 出力
		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 人数の入力
		int ninzu = sc.nextInt();
		int okasi = sc.nextInt();
      	int[] sum = new int[ninzu];
      	for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            }
        }
      	int ans = 0;
      	for (int i=0; i<sum.length; i++) {
          if (sum[i] == 0) {
            ans += 1;
          }
        }
		// 出力
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		// 人数の入力
		int ninzu = sc.nextInt();
		int okasi = sc.nextInt();
      	int[] sum = new int[ninzu];
      	for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            }
        }
      	int ans = 0;
      	for (int i=0; i<sum.length; i++) {
          if (sum[i] == 0) {
            ans += 1;
          }
        }
		// 出力
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int ninzu = sc.nextInt(); ninzu sc.nextInt() sc.nextInt sc int okasi = sc.nextInt(); okasi sc.nextInt() sc.nextInt sc int[] sum = new int[ninzu]; sum new int[ninzu] ninzu for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            }
        } int i=0; int i=0; i 0 i<okasi i okasi i++ i++ i {
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            }
        } {
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            }
        } int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            } int j=0; int j=0; j 0 j<c j c j++ j++ j {
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            } {
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            } int d = sc.nextInt() - 1; d sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 sum[d] = 1 sum[d] sum d 1 int ans = 0; ans 0 for (int i=0; i<sum.length; i++) {
          if (sum[i] == 0) {
            ans += 1;
          }
        } int i=0; int i=0; i 0 i<sum.length i sum.length sum sum.length i++ i++ i {
          if (sum[i] == 0) {
            ans += 1;
          }
        } {
          if (sum[i] == 0) {
            ans += 1;
          }
        } if (sum[i] == 0) {
            ans += 1;
          } sum[i] == 0 sum[i] sum i 0 {
            ans += 1;
          } ans += 1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 人数の入力
		int ninzu = sc.nextInt();
		int okasi = sc.nextInt();
      	int[] sum = new int[ninzu];
      	for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            }
        }
      	int ans = 0;
      	for (int i=0; i<sum.length; i++) {
          if (sum[i] == 0) {
            ans += 1;
          }
        }
		// 出力
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 人数の入力
		int ninzu = sc.nextInt();
		int okasi = sc.nextInt();
      	int[] sum = new int[ninzu];
      	for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            }
        }
      	int ans = 0;
      	for (int i=0; i<sum.length; i++) {
          if (sum[i] == 0) {
            ans += 1;
          }
        }
		// 出力
		System.out.println(ans);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 人数の入力
		int ninzu = sc.nextInt();
		int okasi = sc.nextInt();
      	int[] sum = new int[ninzu];
      	for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt() - 1;
              sum[d] = 1;
            }
        }
      	int ans = 0;
      	for (int i=0; i<sum.length; i++) {
          if (sum[i] == 0) {
            ans += 1;
          }
        }
		// 出力
		System.out.println(ans);
	}
}