   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 []sunuke = new int[N];
        
        int cou = 0;
        for(int i=0; i<K; i++) {
        	int d = sc.nextInt();
        	for(int j=0; j<d; j++) {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	}
        }
        for(int i=0; i<N; i++) {
        	if(sunuke[i] == 0) {
        		cou++;
        	}
        }
        System.out.println(cou);
      }
    } 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 []sunuke = new int[N];
        
        int cou = 0;
        for(int i=0; i<K; i++) {
        	int d = sc.nextInt();
        	for(int j=0; j<d; j++) {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	}
        }
        for(int i=0; i<N; i++) {
        	if(sunuke[i] == 0) {
        		cou++;
        	}
        }
        System.out.println(cou);
      }
    } Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int []sunuke = new int[N];
        
        int cou = 0;
        for(int i=0; i<K; i++) {
        	int d = sc.nextInt();
        	for(int j=0; j<d; j++) {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	}
        }
        for(int i=0; i<N; i++) {
        	if(sunuke[i] == 0) {
        		cou++;
        	}
        }
        System.out.println(cou);
      } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int []sunuke = new int[N];
        
        int cou = 0;
        for(int i=0; i<K; i++) {
        	int d = sc.nextInt();
        	for(int j=0; j<d; j++) {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	}
        }
        for(int i=0; i<N; i++) {
        	if(sunuke[i] == 0) {
        		cou++;
        	}
        }
        System.out.println(cou);
      } 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 []sunuke = new int[N]; sunuke new int[N] N int cou = 0; cou 0 for(int i=0; i<K; i++) {
        	int d = sc.nextInt();
        	for(int j=0; j<d; j++) {
        		int A = sc.nextInt();
        		sunuke[A-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++) {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	}
        } {
        	int d = sc.nextInt();
        	for(int j=0; j<d; j++) {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	}
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j=0; j<d; j++) {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	} int j=0; int j=0; j 0 j<d j d j++ j++ j {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	} {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	} int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc sunuke[A-1]++ sunuke[A-1] sunuke A-1 A 1 for(int i=0; i<N; i++) {
        	if(sunuke[i] == 0) {
        		cou++;
        	}
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        	if(sunuke[i] == 0) {
        		cou++;
        	}
        } {
        	if(sunuke[i] == 0) {
        		cou++;
        	}
        } if(sunuke[i] == 0) {
        		cou++;
        	} sunuke[i] == 0 sunuke[i] sunuke i 0 {
        		cou++;
        	} cou++ cou System.out.println(cou) System.out.println System.out System System.out cou 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 []sunuke = new int[N];
        
        int cou = 0;
        for(int i=0; i<K; i++) {
        	int d = sc.nextInt();
        	for(int j=0; j<d; j++) {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	}
        }
        for(int i=0; i<N; i++) {
        	if(sunuke[i] == 0) {
        		cou++;
        	}
        }
        System.out.println(cou);
      }
    } public class Main {
      public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int []sunuke = new int[N];
        
        int cou = 0;
        for(int i=0; i<K; i++) {
        	int d = sc.nextInt();
        	for(int j=0; j<d; j++) {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	}
        }
        for(int i=0; i<N; i++) {
        	if(sunuke[i] == 0) {
        		cou++;
        	}
        }
        System.out.println(cou);
      }
    } 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 []sunuke = new int[N];
        
        int cou = 0;
        for(int i=0; i<K; i++) {
        	int d = sc.nextInt();
        	for(int j=0; j<d; j++) {
        		int A = sc.nextInt();
        		sunuke[A-1]++;
        	}
        }
        for(int i=0; i<N; i++) {
        	if(sunuke[i] == 0) {
        		cou++;
        	}
        }
        System.out.println(cou);
      }
    }