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[] hasSnack= new int[n];
		
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			}
		}

		int ans = 0;
		for(int i = 0; i < n; i++){
			if(hasSnack[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		sc.close();
	}

} 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[] hasSnack= new int[n];
		
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			}
		}

		int ans = 0;
		for(int i = 0; i < n; i++){
			if(hasSnack[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		sc.close();
	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int[] hasSnack= new int[n];
		
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			}
		}

		int ans = 0;
		for(int i = 0; i < n; i++){
			if(hasSnack[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[] hasSnack= new int[n];
		
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			}
		}

		int ans = 0;
		for(int i = 0; i < n; i++){
			if(hasSnack[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[] hasSnack= new int[n]; hasSnack new int[n] n for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				int a = sc.nextInt();
				hasSnack[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();
				hasSnack[a - 1]++;
			}
		} {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j = 0; j < d; j++){
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			} {
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc hasSnack[a - 1]++ hasSnack[a - 1] hasSnack a - 1 a 1 int ans = 0; ans 0 for(int i = 0; i < n; i++){
			if(hasSnack[i] == 0) {
				ans++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if(hasSnack[i] == 0) {
				ans++;
			}
		} {
			if(hasSnack[i] == 0) {
				ans++;
			}
		} if(hasSnack[i] == 0) {
				ans++;
			} hasSnack[i] == 0 hasSnack[i] hasSnack i 0 {
				ans++;
			} 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) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int[] hasSnack= new int[n];
		
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			}
		}

		int ans = 0;
		for(int i = 0; i < n; i++){
			if(hasSnack[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int[] hasSnack= new int[n];
		
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			}
		}

		int ans = 0;
		for(int i = 0; i < n; i++){
			if(hasSnack[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		sc.close();
	}

} 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[] hasSnack= new int[n];
		
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				int a = sc.nextInt();
				hasSnack[a - 1]++;
			}
		}

		int ans = 0;
		for(int i = 0; i < n; i++){
			if(hasSnack[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		sc.close();
	}

}