import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int answer = 0;
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] countSweets = new int[n + 1];
    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      }
    }
    for(int i = 1; i <= n; i++){
      if(countSweets[i] == 0) answer++;
    }
    System.out.println(answer);
  }
} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int answer = 0;
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] countSweets = new int[n + 1];
    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      }
    }
    for(int i = 1; i <= n; i++){
      if(countSweets[i] == 0) answer++;
    }
    System.out.println(answer);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int answer = 0;
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] countSweets = new int[n + 1];
    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      }
    }
    for(int i = 1; i <= n; i++){
      if(countSweets[i] == 0) answer++;
    }
    System.out.println(answer);
  } main {
    Scanner sc = new Scanner(System.in);
    int answer = 0;
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] countSweets = new int[n + 1];
    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      }
    }
    for(int i = 1; i <= n; i++){
      if(countSweets[i] == 0) answer++;
    }
    System.out.println(answer);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int answer = 0; answer 0 int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc int[] countSweets = new int[n + 1]; countSweets new int[n + 1] n + 1 n 1 for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      }
    } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      }
    } {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      }
    } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
        int a = sc.nextInt();
        countSweets[a]++;
      } {
        int a = sc.nextInt();
        countSweets[a]++;
      } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc countSweets[a]++ countSweets[a] countSweets a for(int i = 1; i <= n; i++){
      if(countSweets[i] == 0) answer++;
    } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
      if(countSweets[i] == 0) answer++;
    } {
      if(countSweets[i] == 0) answer++;
    } if(countSweets[i] == 0) answer++; countSweets[i] == 0 countSweets[i] countSweets i 0 answer++ answer System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int answer = 0;
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] countSweets = new int[n + 1];
    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      }
    }
    for(int i = 1; i <= n; i++){
      if(countSweets[i] == 0) answer++;
    }
    System.out.println(answer);
  }
} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int answer = 0;
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] countSweets = new int[n + 1];
    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      }
    }
    for(int i = 1; i <= n; i++){
      if(countSweets[i] == 0) answer++;
    }
    System.out.println(answer);
  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int answer = 0;
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] countSweets = new int[n + 1];
    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int a = sc.nextInt();
        countSweets[a]++;
      }
    }
    for(int i = 1; i <= n; i++){
      if(countSweets[i] == 0) answer++;
    }
    System.out.println(answer);
  }
}