import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    boolean [] g = new boolean[n];
    for (int gg = 0;gg<n;gg++){
      g[gg] = true;
    }
    for (int i=0; i<k; i++){
      int a = scan.nextInt();
      for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      }
    }
    int sum = 0;
    for (int q=0; q<n; q++){
      if (g[q] == true){
        sum += 1;
      }
    }
    System.out.println(sum);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    boolean [] g = new boolean[n];
    for (int gg = 0;gg<n;gg++){
      g[gg] = true;
    }
    for (int i=0; i<k; i++){
      int a = scan.nextInt();
      for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      }
    }
    int sum = 0;
    for (int q=0; q<n; q++){
      if (g[q] == true){
        sum += 1;
      }
    }
    System.out.println(sum);
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    boolean [] g = new boolean[n];
    for (int gg = 0;gg<n;gg++){
      g[gg] = true;
    }
    for (int i=0; i<k; i++){
      int a = scan.nextInt();
      for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      }
    }
    int sum = 0;
    for (int q=0; q<n; q++){
      if (g[q] == true){
        sum += 1;
      }
    }
    System.out.println(sum);
  } main {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    boolean [] g = new boolean[n];
    for (int gg = 0;gg<n;gg++){
      g[gg] = true;
    }
    for (int i=0; i<k; i++){
      int a = scan.nextInt();
      for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      }
    }
    int sum = 0;
    for (int q=0; q<n; q++){
      if (g[q] == true){
        sum += 1;
      }
    }
    System.out.println(sum);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan boolean [] g = new boolean[n]; g new boolean[n] n for (int gg = 0;gg<n;gg++){
      g[gg] = true;
    } int gg = 0; int gg = 0; gg 0 gg<n gg n gg++ gg++ gg {
      g[gg] = true;
    } {
      g[gg] = true;
    } g[gg] = true g[gg] g gg true for (int i=0; i<k; i++){
      int a = scan.nextInt();
      for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      }
    } int i=0; int i=0; i 0 i<k i k i++ i++ i {
      int a = scan.nextInt();
      for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      }
    } {
      int a = scan.nextInt();
      for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      }
    } int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      } int j=0; int j=0; j 0 j<a j a j++ j++ j {
        int d = scan.nextInt();
        g[d-1] = false;
      } {
        int d = scan.nextInt();
        g[d-1] = false;
      } int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan g[d-1] = false g[d-1] g d-1 d 1 false int sum = 0; sum 0 for (int q=0; q<n; q++){
      if (g[q] == true){
        sum += 1;
      }
    } int q=0; int q=0; q 0 q<n q n q++ q++ q {
      if (g[q] == true){
        sum += 1;
      }
    } {
      if (g[q] == true){
        sum += 1;
      }
    } if (g[q] == true){
        sum += 1;
      } g[q] == true g[q] g q true {
        sum += 1;
      } sum += 1 sum 1 System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    boolean [] g = new boolean[n];
    for (int gg = 0;gg<n;gg++){
      g[gg] = true;
    }
    for (int i=0; i<k; i++){
      int a = scan.nextInt();
      for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      }
    }
    int sum = 0;
    for (int q=0; q<n; q++){
      if (g[q] == true){
        sum += 1;
      }
    }
    System.out.println(sum);
  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    boolean [] g = new boolean[n];
    for (int gg = 0;gg<n;gg++){
      g[gg] = true;
    }
    for (int i=0; i<k; i++){
      int a = scan.nextInt();
      for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      }
    }
    int sum = 0;
    for (int q=0; q<n; q++){
      if (g[q] == true){
        sum += 1;
      }
    }
    System.out.println(sum);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    boolean [] g = new boolean[n];
    for (int gg = 0;gg<n;gg++){
      g[gg] = true;
    }
    for (int i=0; i<k; i++){
      int a = scan.nextInt();
      for (int j=0;j<a;j++){
        int d = scan.nextInt();
        g[d-1] = false;
      }
    }
    int sum = 0;
    for (int q=0; q<n; q++){
      if (g[q] == true){
        sum += 1;
      }
    }
    System.out.println(sum);
  }
}
