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