    import 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();
        int[] a = new int[n];
        int cnt = 0;
        for (int i = 0; i < k; i++) {
          int d = sc.nextInt();
          for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          }
        }
        
        for (int j = 0; j < n; j++) {
          if (a[j] == 0) {
            cnt++;
          }
        }
        System.out.println(cnt);
      }
    }   import java.util.*; util.* java public class Main {
      public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n= sc.nextInt();
        int k = sc.nextInt();
        int[] a = new int[n];
        int cnt = 0;
        for (int i = 0; i < k; i++) {
          int d = sc.nextInt();
          for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          }
        }
        
        for (int j = 0; j < n; j++) {
          if (a[j] == 0) {
            cnt++;
          }
        }
        System.out.println(cnt);
      }
    } Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n= sc.nextInt();
        int k = sc.nextInt();
        int[] a = new int[n];
        int cnt = 0;
        for (int i = 0; i < k; i++) {
          int d = sc.nextInt();
          for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          }
        }
        
        for (int j = 0; j < n; j++) {
          if (a[j] == 0) {
            cnt++;
          }
        }
        System.out.println(cnt);
      } main {
        Scanner sc = new Scanner(System.in);
        int n= sc.nextInt();
        int k = sc.nextInt();
        int[] a = new int[n];
        int cnt = 0;
        for (int i = 0; i < k; i++) {
          int d = sc.nextInt();
          for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          }
        }
        
        for (int j = 0; j < n; j++) {
          if (a[j] == 0) {
            cnt++;
          }
        }
        System.out.println(cnt);
      } 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 int[] a = new int[n]; a new int[n] n int cnt = 0; cnt 0 for (int i = 0; i < k; i++) {
          int d = sc.nextInt();
          for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          }
        } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
          int d = sc.nextInt();
          for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          }
        } {
          int d = sc.nextInt();
          for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          }
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
              int p = sc.nextInt();
              a[p-1]++;
          } {
              int p = sc.nextInt();
              a[p-1]++;
          } int p = sc.nextInt(); p sc.nextInt() sc.nextInt sc a[p-1]++ a[p-1] a p-1 p 1 for (int j = 0; j < n; j++) {
          if (a[j] == 0) {
            cnt++;
          }
        } int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
          if (a[j] == 0) {
            cnt++;
          }
        } {
          if (a[j] == 0) {
            cnt++;
          }
        } if (a[j] == 0) {
            cnt++;
          } a[j] == 0 a[j] a j 0 {
            cnt++;
          } cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt 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();
        int[] a = new int[n];
        int cnt = 0;
        for (int i = 0; i < k; i++) {
          int d = sc.nextInt();
          for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          }
        }
        
        for (int j = 0; j < n; j++) {
          if (a[j] == 0) {
            cnt++;
          }
        }
        System.out.println(cnt);
      }
    } public class Main {
      public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n= sc.nextInt();
        int k = sc.nextInt();
        int[] a = new int[n];
        int cnt = 0;
        for (int i = 0; i < k; i++) {
          int d = sc.nextInt();
          for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          }
        }
        
        for (int j = 0; j < n; j++) {
          if (a[j] == 0) {
            cnt++;
          }
        }
        System.out.println(cnt);
      }
    } Main
    import 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();
        int[] a = new int[n];
        int cnt = 0;
        for (int i = 0; i < k; i++) {
          int d = sc.nextInt();
          for (int j = 0; j < d; j++) {
              int p = sc.nextInt();
              a[p-1]++;
          }
        }
        
        for (int j = 0; j < n; j++) {
          if (a[j] == 0) {
            cnt++;
          }
        }
        System.out.println(cnt);
      }
    }  