import java.util.Scanner;

public class Main{
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int k = sc.nextInt();

	  int[] array = new int[n];
	  for(int i = 0; i < k; i++){
	    int d = sc.nextInt();
	    for(int j = 0; j < d; j++){
	      array[sc.nextInt() - 1] = 1;
	    }
	  }

	  int count = 0;
	  for(int i = 0; i < n; i++){
	    if(array[i] != 1) count++;
	  }
	  System.out.print(count);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int k = sc.nextInt();

	  int[] array = new int[n];
	  for(int i = 0; i < k; i++){
	    int d = sc.nextInt();
	    for(int j = 0; j < d; j++){
	      array[sc.nextInt() - 1] = 1;
	    }
	  }

	  int count = 0;
	  for(int i = 0; i < n; i++){
	    if(array[i] != 1) count++;
	  }
	  System.out.print(count);
	}
} Main public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int k = sc.nextInt();

	  int[] array = new int[n];
	  for(int i = 0; i < k; i++){
	    int d = sc.nextInt();
	    for(int j = 0; j < d; j++){
	      array[sc.nextInt() - 1] = 1;
	    }
	  }

	  int count = 0;
	  for(int i = 0; i < n; i++){
	    if(array[i] != 1) count++;
	  }
	  System.out.print(count);
	} main {
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int k = sc.nextInt();

	  int[] array = new int[n];
	  for(int i = 0; i < k; i++){
	    int d = sc.nextInt();
	    for(int j = 0; j < d; j++){
	      array[sc.nextInt() - 1] = 1;
	    }
	  }

	  int count = 0;
	  for(int i = 0; i < n; i++){
	    if(array[i] != 1) count++;
	  }
	  System.out.print(count);
	} 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 int[] array = new int[n]; array new int[n] n for(int i = 0; i < k; i++){
	    int d = sc.nextInt();
	    for(int j = 0; j < d; j++){
	      array[sc.nextInt() - 1] = 1;
	    }
	  } 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++){
	      array[sc.nextInt() - 1] = 1;
	    }
	  } {
	    int d = sc.nextInt();
	    for(int j = 0; j < d; j++){
	      array[sc.nextInt() - 1] = 1;
	    }
	  } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j = 0; j < d; j++){
	      array[sc.nextInt() - 1] = 1;
	    } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
	      array[sc.nextInt() - 1] = 1;
	    } {
	      array[sc.nextInt() - 1] = 1;
	    } array[sc.nextInt() - 1] = 1 array[sc.nextInt() - 1] array sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 1 int count = 0; count 0 for(int i = 0; i < n; i++){
	    if(array[i] != 1) count++;
	  } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
	    if(array[i] != 1) count++;
	  } {
	    if(array[i] != 1) count++;
	  } if(array[i] != 1) count++; array[i] != 1 array[i] array i 1 count++ count System.out.print(count) System.out.print System.out System System.out count String[] args args public class Main{
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int k = sc.nextInt();

	  int[] array = new int[n];
	  for(int i = 0; i < k; i++){
	    int d = sc.nextInt();
	    for(int j = 0; j < d; j++){
	      array[sc.nextInt() - 1] = 1;
	    }
	  }

	  int count = 0;
	  for(int i = 0; i < n; i++){
	    if(array[i] != 1) count++;
	  }
	  System.out.print(count);
	}
} public class Main{
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int k = sc.nextInt();

	  int[] array = new int[n];
	  for(int i = 0; i < k; i++){
	    int d = sc.nextInt();
	    for(int j = 0; j < d; j++){
	      array[sc.nextInt() - 1] = 1;
	    }
	  }

	  int count = 0;
	  for(int i = 0; i < n; i++){
	    if(array[i] != 1) count++;
	  }
	  System.out.print(count);
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int k = sc.nextInt();

	  int[] array = new int[n];
	  for(int i = 0; i < k; i++){
	    int d = sc.nextInt();
	    for(int j = 0; j < d; j++){
	      array[sc.nextInt() - 1] = 1;
	    }
	  }

	  int count = 0;
	  for(int i = 0; i < n; i++){
	    if(array[i] != 1) count++;
	  }
	  System.out.print(count);
	}
}