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[]d = new int[k];
    int[]a = new int[k];
    int[]s = new int[n];
    		
    for(int i=0; i<k; i++) {
    	d[i] = sc.nextInt();
    		for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		}
    }
    int cou = 0;
    for(int i=0; i<n; i++) {
    	if(s[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[]d = new int[k];
    int[]a = new int[k];
    int[]s = new int[n];
    		
    for(int i=0; i<k; i++) {
    	d[i] = sc.nextInt();
    		for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		}
    }
    int cou = 0;
    for(int i=0; i<n; i++) {
    	if(s[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[]d = new int[k];
    int[]a = new int[k];
    int[]s = new int[n];
    		
    for(int i=0; i<k; i++) {
    	d[i] = sc.nextInt();
    		for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		}
    }
    int cou = 0;
    for(int i=0; i<n; i++) {
    	if(s[i] == 0){
    		cou++;
    	}
    }
    		System.out.println(cou);
    		} main {
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[]d = new int[k];
    int[]a = new int[k];
    int[]s = new int[n];
    		
    for(int i=0; i<k; i++) {
    	d[i] = sc.nextInt();
    		for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		}
    }
    int cou = 0;
    for(int i=0; i<n; i++) {
    	if(s[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[]d = new int[k]; d new int[k] k int[]a = new int[k]; a new int[k] k int[]s = new int[n]; s new int[n] n for(int i=0; i<k; i++) {
    	d[i] = sc.nextInt();
    		for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		}
    } int i=0; int i=0; i 0 i<k i k i++ i++ i {
    	d[i] = sc.nextInt();
    		for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		}
    } {
    	d[i] = sc.nextInt();
    		for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		}
    } d[i] = sc.nextInt() d[i] d i sc.nextInt() sc.nextInt sc for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		} int j=0; int j=0; j 0 j<d[i] j d[i] d i j++ j++ j {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		} {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		} a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc s[a[i]-1]++ s[a[i]-1] s a[i]-1 a[i] a i 1 int cou = 0; cou 0 for(int i=0; i<n; i++) {
    	if(s[i] == 0){
    		cou++;
    	}
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
    	if(s[i] == 0){
    		cou++;
    	}
    } {
    	if(s[i] == 0){
    		cou++;
    	}
    } if(s[i] == 0){
    		cou++;
    	} s[i] == 0 s[i] s 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[]d = new int[k];
    int[]a = new int[k];
    int[]s = new int[n];
    		
    for(int i=0; i<k; i++) {
    	d[i] = sc.nextInt();
    		for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		}
    }
    int cou = 0;
    for(int i=0; i<n; i++) {
    	if(s[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[]d = new int[k];
    int[]a = new int[k];
    int[]s = new int[n];
    		
    for(int i=0; i<k; i++) {
    	d[i] = sc.nextInt();
    		for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		}
    }
    int cou = 0;
    for(int i=0; i<n; i++) {
    	if(s[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[]d = new int[k];
    int[]a = new int[k];
    int[]s = new int[n];
    		
    for(int i=0; i<k; i++) {
    	d[i] = sc.nextInt();
    		for(int j=0; j<d[i]; j++) {
    			 a[i] = sc.nextInt();
    			 	s[a[i]-1]++;
    		}
    }
    int cou = 0;
    for(int i=0; i<n; i++) {
    	if(s[i] == 0){
    		cou++;
    	}
    }
    		System.out.println(cou);
    		}
}
