import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
	int K = sc.nextInt();
	int d = 0;
	int a = 0;
	int[] c = new int[N]; 
	int ans = 0;

	for (int i = 0; i < K; i++) {
		d = sc.nextInt();
		for (int j = 0; j < d; j++) {
			a = sc.nextInt();
			c[a-1]++;
		}
	}

	for (int i = 0; i < N; i++) {
		if (c[i] == 0) ans++;
	}


	System.out.println(ans);

        sc.close();
    }    
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
	int K = sc.nextInt();
	int d = 0;
	int a = 0;
	int[] c = new int[N]; 
	int ans = 0;

	for (int i = 0; i < K; i++) {
		d = sc.nextInt();
		for (int j = 0; j < d; j++) {
			a = sc.nextInt();
			c[a-1]++;
		}
	}

	for (int i = 0; i < N; i++) {
		if (c[i] == 0) ans++;
	}


	System.out.println(ans);

        sc.close();
    }    
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
	int K = sc.nextInt();
	int d = 0;
	int a = 0;
	int[] c = new int[N]; 
	int ans = 0;

	for (int i = 0; i < K; i++) {
		d = sc.nextInt();
		for (int j = 0; j < d; j++) {
			a = sc.nextInt();
			c[a-1]++;
		}
	}

	for (int i = 0; i < N; i++) {
		if (c[i] == 0) ans++;
	}


	System.out.println(ans);

        sc.close();
    } main {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
	int K = sc.nextInt();
	int d = 0;
	int a = 0;
	int[] c = new int[N]; 
	int ans = 0;

	for (int i = 0; i < K; i++) {
		d = sc.nextInt();
		for (int j = 0; j < d; j++) {
			a = sc.nextInt();
			c[a-1]++;
		}
	}

	for (int i = 0; i < N; i++) {
		if (c[i] == 0) ans++;
	}


	System.out.println(ans);

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

	for (int i = 0; i < K; i++) {
		d = sc.nextInt();
		for (int j = 0; j < d; j++) {
			a = sc.nextInt();
			c[a-1]++;
		}
	}

	for (int i = 0; i < N; i++) {
		if (c[i] == 0) ans++;
	}


	System.out.println(ans);

        sc.close();
    }    
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
	int K = sc.nextInt();
	int d = 0;
	int a = 0;
	int[] c = new int[N]; 
	int ans = 0;

	for (int i = 0; i < K; i++) {
		d = sc.nextInt();
		for (int j = 0; j < d; j++) {
			a = sc.nextInt();
			c[a-1]++;
		}
	}

	for (int i = 0; i < N; i++) {
		if (c[i] == 0) ans++;
	}


	System.out.println(ans);

        sc.close();
    }    
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
	int K = sc.nextInt();
	int d = 0;
	int a = 0;
	int[] c = new int[N]; 
	int ans = 0;

	for (int i = 0; i < K; i++) {
		d = sc.nextInt();
		for (int j = 0; j < d; j++) {
			a = sc.nextInt();
			c[a-1]++;
		}
	}

	for (int i = 0; i < N; i++) {
		if (c[i] == 0) ans++;
	}


	System.out.println(ans);

        sc.close();
    }    
}
