import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {

			int n = sc.nextInt();
			int k = sc.nextInt();
			
			int[] sunukes = new int[n+1]; 
			
			for(int i = 0 ; i < k ; i++ ) {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			}
			
			int haves = Arrays.stream(sunukes).sum();
			System.out.println(n - haves);
		}
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {

			int n = sc.nextInt();
			int k = sc.nextInt();
			
			int[] sunukes = new int[n+1]; 
			
			for(int i = 0 ; i < k ; i++ ) {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			}
			
			int haves = Arrays.stream(sunukes).sum();
			System.out.println(n - haves);
		}
	}

} Main public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {

			int n = sc.nextInt();
			int k = sc.nextInt();
			
			int[] sunukes = new int[n+1]; 
			
			for(int i = 0 ; i < k ; i++ ) {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			}
			
			int haves = Arrays.stream(sunukes).sum();
			System.out.println(n - haves);
		}
	} main {
		try(Scanner sc = new Scanner(System.in)) {

			int n = sc.nextInt();
			int k = sc.nextInt();
			
			int[] sunukes = new int[n+1]; 
			
			for(int i = 0 ; i < k ; i++ ) {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			}
			
			int haves = Arrays.stream(sunukes).sum();
			System.out.println(n - haves);
		}
	} try(Scanner sc = new Scanner(System.in)) {

			int n = sc.nextInt();
			int k = sc.nextInt();
			
			int[] sunukes = new int[n+1]; 
			
			for(int i = 0 ; i < k ; i++ ) {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			}
			
			int haves = Arrays.stream(sunukes).sum();
			System.out.println(n - haves);
		} {

			int n = sc.nextInt();
			int k = sc.nextInt();
			
			int[] sunukes = new int[n+1]; 
			
			for(int i = 0 ; i < k ; i++ ) {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			}
			
			int haves = Arrays.stream(sunukes).sum();
			System.out.println(n - haves);
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) 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[] sunukes = new int[n+1]; sunukes new int[n+1] n+1 n 1 for(int i = 0 ; i < k ; i++ ) {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			} int i = 0 ; int i = 0 ; i 0 i < k i k i++ i++ i {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			} {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			} int di = sc.nextInt(); di sc.nextInt() sc.nextInt sc for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				} int j = 0 ; int j = 0 ; j 0 j < di j di j++ j++ j {
					int a = sc.nextInt();
					sunukes[a] = 1;
				} {
					int a = sc.nextInt();
					sunukes[a] = 1;
				} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc sunukes[a] = 1 sunukes[a] sunukes a 1 int haves = Arrays.stream(sunukes).sum(); haves Arrays.stream(sunukes).sum() Arrays.stream(sunukes).sum Arrays.stream(sunukes) Arrays.stream Arrays sunukes System.out.println(n - haves) System.out.println System.out System System.out n - haves n haves String[] args args public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {

			int n = sc.nextInt();
			int k = sc.nextInt();
			
			int[] sunukes = new int[n+1]; 
			
			for(int i = 0 ; i < k ; i++ ) {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			}
			
			int haves = Arrays.stream(sunukes).sum();
			System.out.println(n - haves);
		}
	}

} public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {

			int n = sc.nextInt();
			int k = sc.nextInt();
			
			int[] sunukes = new int[n+1]; 
			
			for(int i = 0 ; i < k ; i++ ) {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			}
			
			int haves = Arrays.stream(sunukes).sum();
			System.out.println(n - haves);
		}
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {

			int n = sc.nextInt();
			int k = sc.nextInt();
			
			int[] sunukes = new int[n+1]; 
			
			for(int i = 0 ; i < k ; i++ ) {
				int di = sc.nextInt();
				for(int j = 0 ; j < di ; j++ ) {
					int a = sc.nextInt();
					sunukes[a] = 1;
				}
			}
			
			int haves = Arrays.stream(sunukes).sum();
			System.out.println(n - haves);
		}
	}

}