import 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();
        ArrayList<Integer> array=new ArrayList<Integer>();
        int cnt=0;
        for(int i =0;i<k;i++) {
        		int d =sc.nextInt();
        		for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		}
        }
        for(int i = 1 ;i<n+1;i++) { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        }
System.out.println(cnt);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        int k =sc.nextInt();
        ArrayList<Integer> array=new ArrayList<Integer>();
        int cnt=0;
        for(int i =0;i<k;i++) {
        		int d =sc.nextInt();
        		for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		}
        }
        for(int i = 1 ;i<n+1;i++) { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        }
System.out.println(cnt);
	}
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        int k =sc.nextInt();
        ArrayList<Integer> array=new ArrayList<Integer>();
        int cnt=0;
        for(int i =0;i<k;i++) {
        		int d =sc.nextInt();
        		for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		}
        }
        for(int i = 1 ;i<n+1;i++) { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        }
System.out.println(cnt);
	} main {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        int k =sc.nextInt();
        ArrayList<Integer> array=new ArrayList<Integer>();
        int cnt=0;
        for(int i =0;i<k;i++) {
        		int d =sc.nextInt();
        		for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		}
        }
        for(int i = 1 ;i<n+1;i++) { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        }
System.out.println(cnt);
	} 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 ArrayList<Integer> array=new ArrayList<Integer>(); array new ArrayList<Integer>() int cnt=0; cnt 0 for(int i =0;i<k;i++) {
        		int d =sc.nextInt();
        		for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		}
        } 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 work = sc.nextInt();
                 array.add(work);
        		}
        } {
        		int d =sc.nextInt();
        		for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		}
        } int d =sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		} int j=0 ; int j=0 ; j 0 j<d j d j++ j++ j {
                  int work = sc.nextInt();
                 array.add(work);
        		} {
                  int work = sc.nextInt();
                 array.add(work);
        		} int work = sc.nextInt(); work sc.nextInt() sc.nextInt sc array.add(work) array.add array work for(int i = 1 ;i<n+1;i++) { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        } int i = 1 ; int i = 1 ; i 1 i<n+1 i n+1 n 1 i++ i++ i { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        } { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        } if(array.contains(i) ==false) {
           cnt+=1; 
          } array.contains(i) ==false array.contains(i) array.contains array i false {
           cnt+=1; 
          } cnt+=1 cnt 1 System.out.println(cnt) System.out.println System.out System System.out cnt 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();
        ArrayList<Integer> array=new ArrayList<Integer>();
        int cnt=0;
        for(int i =0;i<k;i++) {
        		int d =sc.nextInt();
        		for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		}
        }
        for(int i = 1 ;i<n+1;i++) { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        }
System.out.println(cnt);
	}
} public class Main {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        int k =sc.nextInt();
        ArrayList<Integer> array=new ArrayList<Integer>();
        int cnt=0;
        for(int i =0;i<k;i++) {
        		int d =sc.nextInt();
        		for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		}
        }
        for(int i = 1 ;i<n+1;i++) { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        }
System.out.println(cnt);
	}
} Main
import 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();
        ArrayList<Integer> array=new ArrayList<Integer>();
        int cnt=0;
        for(int i =0;i<k;i++) {
        		int d =sc.nextInt();
        		for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		}
        }
        for(int i = 1 ;i<n+1;i++) { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        }
System.out.println(cnt);
	}
}