import java.util.Scanner;

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

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int K = scanner.nextInt();
    int sunukes[] = new int[N];
    
    for(int i = 0;i < K;i++){
      int d = scanner.nextInt();
      for(int j = 0;j < d;j++){
        int a = scanner.nextInt() - 1;
        sunukes[a]++;
      }
    }
    int sum = 0;
    for(int i = 0;i < sunukes.length;i++){
      if(sunukes[i] == 0){
      	sum++;
      }
    }
    System.out.println(sum);
  }
}