import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
      Scanner scn = new Scanner(System.in);
      boolean a[]=new boolean[scn.nextInt()+1];
      int k=scn.nextInt();
      int ans=-1;
      for(int i=0;i<k;i++){
          for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          }
      }
      for (int i=0;i<a.length;i++){
          if(!a[i]) ans++;
      }
      System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
      Scanner scn = new Scanner(System.in);
      boolean a[]=new boolean[scn.nextInt()+1];
      int k=scn.nextInt();
      int ans=-1;
      for(int i=0;i<k;i++){
          for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          }
      }
      for (int i=0;i<a.length;i++){
          if(!a[i]) ans++;
      }
      System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {
      Scanner scn = new Scanner(System.in);
      boolean a[]=new boolean[scn.nextInt()+1];
      int k=scn.nextInt();
      int ans=-1;
      for(int i=0;i<k;i++){
          for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          }
      }
      for (int i=0;i<a.length;i++){
          if(!a[i]) ans++;
      }
      System.out.println(ans);
    } main {
      Scanner scn = new Scanner(System.in);
      boolean a[]=new boolean[scn.nextInt()+1];
      int k=scn.nextInt();
      int ans=-1;
      for(int i=0;i<k;i++){
          for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          }
      }
      for (int i=0;i<a.length;i++){
          if(!a[i]) ans++;
      }
      System.out.println(ans);
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) boolean a[]=new boolean[scn.nextInt()+1]; a new boolean[scn.nextInt()+1] scn.nextInt()+1 scn.nextInt() scn.nextInt scn 1 int k=scn.nextInt(); k scn.nextInt() scn.nextInt scn int ans=-1; ans -1 1 for(int i=0;i<k;i++){
          for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          }
      } int i=0; int i=0; i 0 i<k i k i++ i++ i {
          for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          }
      } {
          for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          }
      } for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          } int j=scn.nextInt(); int j=scn.nextInt(); j scn.nextInt() scn.nextInt scn j>0 j 0 j-- j-- j {
              a[scn.nextInt()]=true;
          } {
              a[scn.nextInt()]=true;
          } a[scn.nextInt()]=true a[scn.nextInt()] a scn.nextInt() scn.nextInt scn true for (int i=0;i<a.length;i++){
          if(!a[i]) ans++;
      } int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
          if(!a[i]) ans++;
      } {
          if(!a[i]) ans++;
      } if(!a[i]) ans++; !a[i] a[i] a i ans++ ans 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) throws Exception {
      Scanner scn = new Scanner(System.in);
      boolean a[]=new boolean[scn.nextInt()+1];
      int k=scn.nextInt();
      int ans=-1;
      for(int i=0;i<k;i++){
          for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          }
      }
      for (int i=0;i<a.length;i++){
          if(!a[i]) ans++;
      }
      System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
      Scanner scn = new Scanner(System.in);
      boolean a[]=new boolean[scn.nextInt()+1];
      int k=scn.nextInt();
      int ans=-1;
      for(int i=0;i<k;i++){
          for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          }
      }
      for (int i=0;i<a.length;i++){
          if(!a[i]) ans++;
      }
      System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
      Scanner scn = new Scanner(System.in);
      boolean a[]=new boolean[scn.nextInt()+1];
      int k=scn.nextInt();
      int ans=-1;
      for(int i=0;i<k;i++){
          for(int j=scn.nextInt();j>0;j--){
              a[scn.nextInt()]=true;
          }
      }
      for (int i=0;i<a.length;i++){
          if(!a[i]) ans++;
      }
      System.out.println(ans);
    }
}
