import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] judge = new boolean[n];
		
		for( int i = 0; i < k; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			}
		}
		int ans = 0;
		for(int i = 0; i < judge.length; i++) {
			if(judge[i] == false) {
				ans++;
			}
		}
		System.out.print(ans);
		
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] judge = new boolean[n];
		
		for( int i = 0; i < k; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			}
		}
		int ans = 0;
		for(int i = 0; i < judge.length; i++) {
			if(judge[i] == false) {
				ans++;
			}
		}
		System.out.print(ans);
		
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] judge = new boolean[n];
		
		for( int i = 0; i < k; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			}
		}
		int ans = 0;
		for(int i = 0; i < judge.length; i++) {
			if(judge[i] == false) {
				ans++;
			}
		}
		System.out.print(ans);
		
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] judge = new boolean[n];
		
		for( int i = 0; i < k; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			}
		}
		int ans = 0;
		for(int i = 0; i < judge.length; i++) {
			if(judge[i] == false) {
				ans++;
			}
		}
		System.out.print(ans);
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan boolean[] judge = new boolean[n]; judge new boolean[n] n for( int i = 0; i < k; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			}
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			}
		} {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			}
		} int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				int a = scan.nextInt();
				judge[a-1] = true;
			} {
				int a = scan.nextInt();
				judge[a-1] = true;
			} int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan judge[a-1] = true judge[a-1] judge a-1 a 1 true int ans = 0; ans 0 for(int i = 0; i < judge.length; i++) {
			if(judge[i] == false) {
				ans++;
			}
		} int i = 0; int i = 0; i 0 i < judge.length i judge.length judge judge.length i++ i++ i {
			if(judge[i] == false) {
				ans++;
			}
		} {
			if(judge[i] == false) {
				ans++;
			}
		} if(judge[i] == false) {
				ans++;
			} judge[i] == false judge[i] judge i false {
				ans++;
			} ans++ ans System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] judge = new boolean[n];
		
		for( int i = 0; i < k; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			}
		}
		int ans = 0;
		for(int i = 0; i < judge.length; i++) {
			if(judge[i] == false) {
				ans++;
			}
		}
		System.out.print(ans);
		
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] judge = new boolean[n];
		
		for( int i = 0; i < k; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			}
		}
		int ans = 0;
		for(int i = 0; i < judge.length; i++) {
			if(judge[i] == false) {
				ans++;
			}
		}
		System.out.print(ans);
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] judge = new boolean[n];
		
		for( int i = 0; i < k; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				int a = scan.nextInt();
				judge[a-1] = true;
			}
		}
		int ans = 0;
		for(int i = 0; i < judge.length; i++) {
			if(judge[i] == false) {
				ans++;
			}
		}
		System.out.print(ans);
		
	}

}
