
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    // スペース区切りの整数の入力
    int N = sc.nextInt();
    int K = sc.nextInt();

    List<Integer> nList = IntStream.range(1, N + 1).boxed().collect(Collectors.toList());

    for (int i = 0; i < K; i++) {
      // 整数の入力
      int di = sc.nextInt();
      for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      }
    }

    System.out.println(nList.size());
  }
} import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.stream.Collectors; Collectors java.util.stream import java.util.stream.IntStream; IntStream java.util.stream public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    // スペース区切りの整数の入力
    int N = sc.nextInt();
    int K = sc.nextInt();

    List<Integer> nList = IntStream.range(1, N + 1).boxed().collect(Collectors.toList());

    for (int i = 0; i < K; i++) {
      // 整数の入力
      int di = sc.nextInt();
      for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      }
    }

    System.out.println(nList.size());
  }
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    // スペース区切りの整数の入力
    int N = sc.nextInt();
    int K = sc.nextInt();

    List<Integer> nList = IntStream.range(1, N + 1).boxed().collect(Collectors.toList());

    for (int i = 0; i < K; i++) {
      // 整数の入力
      int di = sc.nextInt();
      for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      }
    }

    System.out.println(nList.size());
  } main {

    Scanner sc = new Scanner(System.in);
    // スペース区切りの整数の入力
    int N = sc.nextInt();
    int K = sc.nextInt();

    List<Integer> nList = IntStream.range(1, N + 1).boxed().collect(Collectors.toList());

    for (int i = 0; i < K; i++) {
      // 整数の入力
      int di = sc.nextInt();
      for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      }
    }

    System.out.println(nList.size());
  } 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 List<Integer> nList = IntStream.range(1, N + 1).boxed().collect(Collectors.toList()); nList IntStream.range(1, N + 1).boxed().collect(Collectors.toList()) IntStream.range(1, N + 1).boxed().collect IntStream.range(1, N + 1).boxed() IntStream.range(1, N + 1).boxed IntStream.range(1, N + 1) IntStream.range IntStream 1 N + 1 N 1 Collectors.toList() Collectors.toList Collectors for (int i = 0; i < K; i++) {
      // 整数の入力
      int di = sc.nextInt();
      for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      }
    } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
      // 整数の入力
      int di = sc.nextInt();
      for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      }
    } {
      // 整数の入力
      int di = sc.nextInt();
      for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      }
    } int di = sc.nextInt(); di sc.nextInt() sc.nextInt sc for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      } int j = 0; int j = 0; j 0 j < di j di j++ j++ j {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      } {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      } int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int index = nList.indexOf(A); index nList.indexOf(A) nList.indexOf nList A if (index != -1) {
          nList.remove(index);
        } index != -1 index -1 1 {
          nList.remove(index);
        } nList.remove(index) nList.remove nList index System.out.println(nList.size()) System.out.println System.out System System.out nList.size() nList.size nList 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();

    List<Integer> nList = IntStream.range(1, N + 1).boxed().collect(Collectors.toList());

    for (int i = 0; i < K; i++) {
      // 整数の入力
      int di = sc.nextInt();
      for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      }
    }

    System.out.println(nList.size());
  }
} public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    // スペース区切りの整数の入力
    int N = sc.nextInt();
    int K = sc.nextInt();

    List<Integer> nList = IntStream.range(1, N + 1).boxed().collect(Collectors.toList());

    for (int i = 0; i < K; i++) {
      // 整数の入力
      int di = sc.nextInt();
      for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      }
    }

    System.out.println(nList.size());
  }
} Main

import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    // スペース区切りの整数の入力
    int N = sc.nextInt();
    int K = sc.nextInt();

    List<Integer> nList = IntStream.range(1, N + 1).boxed().collect(Collectors.toList());

    for (int i = 0; i < K; i++) {
      // 整数の入力
      int di = sc.nextInt();
      for (int j = 0; j < di; j++) {
        int A = sc.nextInt();
        int index = nList.indexOf(A);
        if (index != -1) {
          nList.remove(index);
        }
      }
    }

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