import java.util.*;

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

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int[] cnt = new int[N];
    for (int i = 0; i < K; i++) {
      int d = sc.nextInt();
      int[] ary = new int[d];
      for (int j = 0; j < d; j++) {
        ary[j] = sc.nextInt();
      }
      for (int v : ary) {
        cnt[v-1]++;
      }
    }
    int ans = 0;
    for (int x = 0; x < N; x++) {
      if (cnt[x] == 0) {
        ans++;
      }
    }
    System.out.println(ans);
  }
}