import java.util.HashSet;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn= new Scanner(System.in);
		int n =scn.nextInt();
		int k =scn.nextInt();
		  HashSet<Integer> hs =new HashSet<>();
		  for(int i=0;i<k;i++){
			  int d =scn.nextInt();
			  for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  }
		  }
		
                   System.out.println(n-hs.size());
	}

} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn= new Scanner(System.in);
		int n =scn.nextInt();
		int k =scn.nextInt();
		  HashSet<Integer> hs =new HashSet<>();
		  for(int i=0;i<k;i++){
			  int d =scn.nextInt();
			  for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  }
		  }
		
                   System.out.println(n-hs.size());
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn= new Scanner(System.in);
		int n =scn.nextInt();
		int k =scn.nextInt();
		  HashSet<Integer> hs =new HashSet<>();
		  for(int i=0;i<k;i++){
			  int d =scn.nextInt();
			  for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  }
		  }
		
                   System.out.println(n-hs.size());
	} main {
		// TODO Auto-generated method stub
		Scanner scn= new Scanner(System.in);
		int n =scn.nextInt();
		int k =scn.nextInt();
		  HashSet<Integer> hs =new HashSet<>();
		  for(int i=0;i<k;i++){
			  int d =scn.nextInt();
			  for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  }
		  }
		
                   System.out.println(n-hs.size());
	} Scanner scn= new Scanner(System.in); scn new Scanner(System.in) int n =scn.nextInt(); n scn.nextInt() scn.nextInt scn int k =scn.nextInt(); k scn.nextInt() scn.nextInt scn HashSet<Integer> hs =new HashSet<>(); hs new HashSet<>() for(int i=0;i<k;i++){
			  int d =scn.nextInt();
			  for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  }
		  } int i=0; int i=0; i 0 i<k i k i++ i++ i {
			  int d =scn.nextInt();
			  for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  }
		  } {
			  int d =scn.nextInt();
			  for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  }
		  } int d =scn.nextInt(); d scn.nextInt() scn.nextInt scn for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  } int  j=0; int  j=0; j 0 j<d j d j++ j++ j {
				  hs.add(scn.nextInt());
			  } {
				  hs.add(scn.nextInt());
			  } hs.add(scn.nextInt()) hs.add hs scn.nextInt() scn.nextInt scn System.out.println(n-hs.size()) System.out.println System.out System System.out n-hs.size() n hs.size() hs.size hs String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn= new Scanner(System.in);
		int n =scn.nextInt();
		int k =scn.nextInt();
		  HashSet<Integer> hs =new HashSet<>();
		  for(int i=0;i<k;i++){
			  int d =scn.nextInt();
			  for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  }
		  }
		
                   System.out.println(n-hs.size());
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn= new Scanner(System.in);
		int n =scn.nextInt();
		int k =scn.nextInt();
		  HashSet<Integer> hs =new HashSet<>();
		  for(int i=0;i<k;i++){
			  int d =scn.nextInt();
			  for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  }
		  }
		
                   System.out.println(n-hs.size());
	}

} Main
import java.util.HashSet;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn= new Scanner(System.in);
		int n =scn.nextInt();
		int k =scn.nextInt();
		  HashSet<Integer> hs =new HashSet<>();
		  for(int i=0;i<k;i++){
			  int d =scn.nextInt();
			  for(int  j=0;j<d;j++){
				  hs.add(scn.nextInt());
			  }
		  }
		
                   System.out.println(n-hs.size());
	}

}