import java.io.FileNotFoundException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");
//    	Scanner sc = new Scanner(file);

    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int K = sc.nextInt();
    	int[] A = new int[N];
    	for(int i=0;i<K;i++) {
    		int d = sc.nextInt();
    		for(int j=0;j<d;j++) {
    			int x = sc.nextInt();
    			A[x-1] ++;
    		}
    	}
    	int ans = 0;
    	for(int i=0;i<N;i++) {
    		if(A[i]==0) {
    			ans++;
    		}
    	}
    	System.out.println(ans);
    }
} import java.io.FileNotFoundException; FileNotFoundException java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");
//    	Scanner sc = new Scanner(file);

    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int K = sc.nextInt();
    	int[] A = new int[N];
    	for(int i=0;i<K;i++) {
    		int d = sc.nextInt();
    		for(int j=0;j<d;j++) {
    			int x = sc.nextInt();
    			A[x-1] ++;
    		}
    	}
    	int ans = 0;
    	for(int i=0;i<N;i++) {
    		if(A[i]==0) {
    			ans++;
    		}
    	}
    	System.out.println(ans);
    }
} Main public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");
//    	Scanner sc = new Scanner(file);

    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int K = sc.nextInt();
    	int[] A = new int[N];
    	for(int i=0;i<K;i++) {
    		int d = sc.nextInt();
    		for(int j=0;j<d;j++) {
    			int x = sc.nextInt();
    			A[x-1] ++;
    		}
    	}
    	int ans = 0;
    	for(int i=0;i<N;i++) {
    		if(A[i]==0) {
    			ans++;
    		}
    	}
    	System.out.println(ans);
    } main {

//    	File file = new File("src/in.txt");
//    	Scanner sc = new Scanner(file);

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

//    	File file = new File("src/in.txt");
//    	Scanner sc = new Scanner(file);

    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int K = sc.nextInt();
    	int[] A = new int[N];
    	for(int i=0;i<K;i++) {
    		int d = sc.nextInt();
    		for(int j=0;j<d;j++) {
    			int x = sc.nextInt();
    			A[x-1] ++;
    		}
    	}
    	int ans = 0;
    	for(int i=0;i<N;i++) {
    		if(A[i]==0) {
    			ans++;
    		}
    	}
    	System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");
//    	Scanner sc = new Scanner(file);

    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int K = sc.nextInt();
    	int[] A = new int[N];
    	for(int i=0;i<K;i++) {
    		int d = sc.nextInt();
    		for(int j=0;j<d;j++) {
    			int x = sc.nextInt();
    			A[x-1] ++;
    		}
    	}
    	int ans = 0;
    	for(int i=0;i<N;i++) {
    		if(A[i]==0) {
    			ans++;
    		}
    	}
    	System.out.println(ans);
    }
} Main
import java.io.FileNotFoundException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");
//    	Scanner sc = new Scanner(file);

    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
    	int K = sc.nextInt();
    	int[] A = new int[N];
    	for(int i=0;i<K;i++) {
    		int d = sc.nextInt();
    		for(int j=0;j<d;j++) {
    			int x = sc.nextInt();
    			A[x-1] ++;
    		}
    	}
    	int ans = 0;
    	for(int i=0;i<N;i++) {
    		if(A[i]==0) {
    			ans++;
    		}
    	}
    	System.out.println(ans);
    }
}