import java.util.Scanner;
import java.util.ArrayList;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    ArrayList<Integer> ar = new ArrayList<Integer>();
    for(int i=0; i<N; i++) {
      ar.add(i+1);
    }
    int K = scan.nextInt();
    for(int i=0; i<K; i++) {
      int d = scan.nextInt();
      for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      }
    }
    scan.close();

    System.out.println(ar.size());
  }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    ArrayList<Integer> ar = new ArrayList<Integer>();
    for(int i=0; i<N; i++) {
      ar.add(i+1);
    }
    int K = scan.nextInt();
    for(int i=0; i<K; i++) {
      int d = scan.nextInt();
      for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      }
    }
    scan.close();

    System.out.println(ar.size());
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    ArrayList<Integer> ar = new ArrayList<Integer>();
    for(int i=0; i<N; i++) {
      ar.add(i+1);
    }
    int K = scan.nextInt();
    for(int i=0; i<K; i++) {
      int d = scan.nextInt();
      for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      }
    }
    scan.close();

    System.out.println(ar.size());
  } main {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    ArrayList<Integer> ar = new ArrayList<Integer>();
    for(int i=0; i<N; i++) {
      ar.add(i+1);
    }
    int K = scan.nextInt();
    for(int i=0; i<K; i++) {
      int d = scan.nextInt();
      for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      }
    }
    scan.close();

    System.out.println(ar.size());
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan ArrayList<Integer> ar = new ArrayList<Integer>(); ar new ArrayList<Integer>() for(int i=0; i<N; i++) {
      ar.add(i+1);
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      ar.add(i+1);
    } {
      ar.add(i+1);
    } ar.add(i+1) ar.add ar i+1 i 1 int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan for(int i=0; i<K; i++) {
      int d = scan.nextInt();
      for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      }
    } int i=0; int i=0; i 0 i<K i K i++ i++ i {
      int d = scan.nextInt();
      for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      }
    } {
      int d = scan.nextInt();
      for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      }
    } int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      } int j=0; int j=0; j 0 j<d j d j++ j++ j {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      } {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      } int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan ar.remove(new Integer(A)) ar.remove ar new Integer(A) scan.close() scan.close scan System.out.println(ar.size()) System.out.println System.out System System.out ar.size() ar.size ar String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    ArrayList<Integer> ar = new ArrayList<Integer>();
    for(int i=0; i<N; i++) {
      ar.add(i+1);
    }
    int K = scan.nextInt();
    for(int i=0; i<K; i++) {
      int d = scan.nextInt();
      for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      }
    }
    scan.close();

    System.out.println(ar.size());
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    ArrayList<Integer> ar = new ArrayList<Integer>();
    for(int i=0; i<N; i++) {
      ar.add(i+1);
    }
    int K = scan.nextInt();
    for(int i=0; i<K; i++) {
      int d = scan.nextInt();
      for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      }
    }
    scan.close();

    System.out.println(ar.size());
  }
} Main
import java.util.Scanner;
import java.util.ArrayList;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    ArrayList<Integer> ar = new ArrayList<Integer>();
    for(int i=0; i<N; i++) {
      ar.add(i+1);
    }
    int K = scan.nextInt();
    for(int i=0; i<K; i++) {
      int d = scan.nextInt();
      for(int j=0; j<d; j++) {
        int A = scan.nextInt();
        ar.remove(new Integer(A));
      }
    }
    scan.close();

    System.out.println(ar.size());
  }
}