import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    int [] ls = new int[n];
    for (int i = 0; i < k; i++){
      int d = scan.nextInt();
      for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      }
    }
    int ans = 0;
    for (int i = 0; i < n; i++){
      if (ls[i] == 0){
        ans++;
      }
    }
    System.out.println(ans);
  }
} import java.util.Scanner; Scanner 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();
    int [] ls = new int[n];
    for (int i = 0; i < k; i++){
      int d = scan.nextInt();
      for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      }
    }
    int ans = 0;
    for (int i = 0; i < n; i++){
      if (ls[i] == 0){
        ans++;
      }
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    int [] ls = new int[n];
    for (int i = 0; i < k; i++){
      int d = scan.nextInt();
      for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      }
    }
    int ans = 0;
    for (int i = 0; i < n; i++){
      if (ls[i] == 0){
        ans++;
      }
    }
    System.out.println(ans);
  } main {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    int [] ls = new int[n];
    for (int i = 0; i < k; i++){
      int d = scan.nextInt();
      for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      }
    }
    int ans = 0;
    for (int i = 0; i < n; i++){
      if (ls[i] == 0){
        ans++;
      }
    }
    System.out.println(ans);
  } 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 int [] ls = new int[n]; ls new int[n] n for (int i = 0; i < k; i++){
      int d = scan.nextInt();
      for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      }
    } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
      int d = scan.nextInt();
      for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      }
    } {
      int d = scan.nextInt();
      for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      }
    } int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
        int a = scan.nextInt();
        ls[a-1]++;
      } {
        int a = scan.nextInt();
        ls[a-1]++;
      } int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan ls[a-1]++ ls[a-1] ls a-1 a 1 int ans = 0; ans 0 for (int i = 0; i < n; i++){
      if (ls[i] == 0){
        ans++;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      if (ls[i] == 0){
        ans++;
      }
    } {
      if (ls[i] == 0){
        ans++;
      }
    } if (ls[i] == 0){
        ans++;
      } ls[i] == 0 ls[i] ls i 0 {
        ans++;
      } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans 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();
    int [] ls = new int[n];
    for (int i = 0; i < k; i++){
      int d = scan.nextInt();
      for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      }
    }
    int ans = 0;
    for (int i = 0; i < n; i++){
      if (ls[i] == 0){
        ans++;
      }
    }
    System.out.println(ans);
  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    int [] ls = new int[n];
    for (int i = 0; i < k; i++){
      int d = scan.nextInt();
      for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      }
    }
    int ans = 0;
    for (int i = 0; i < n; i++){
      if (ls[i] == 0){
        ans++;
      }
    }
    System.out.println(ans);
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int k = scan.nextInt();
    int [] ls = new int[n];
    for (int i = 0; i < k; i++){
      int d = scan.nextInt();
      for (int j = 0; j < d; j++){
        int a = scan.nextInt();
        ls[a-1]++;
      }
    }
    int ans = 0;
    for (int i = 0; i < n; i++){
      if (ls[i] == 0){
        ans++;
      }
    }
    System.out.println(ans);
  }
}