import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();

		ArrayList<Integer> okashiList = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			okashiList.add(0);
		}

		//お菓子の種類だけ繰り返す
		for(int i = 0; i < K; i++) {
			//お菓子の個数の取得
			int d = sc.nextInt();
			for(int j = 0;j < d;j++) {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			}
		}

		int answer = 0;
		for(int x = 0;x < okashiList.size();x++){
			if(okashiList.get(x) == 0) {
				answer ++ ;
			}
		}

		System.out.println(answer);

	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();

		ArrayList<Integer> okashiList = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			okashiList.add(0);
		}

		//お菓子の種類だけ繰り返す
		for(int i = 0; i < K; i++) {
			//お菓子の個数の取得
			int d = sc.nextInt();
			for(int j = 0;j < d;j++) {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			}
		}

		int answer = 0;
		for(int x = 0;x < okashiList.size();x++){
			if(okashiList.get(x) == 0) {
				answer ++ ;
			}
		}

		System.out.println(answer);

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();

		ArrayList<Integer> okashiList = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			okashiList.add(0);
		}

		//お菓子の種類だけ繰り返す
		for(int i = 0; i < K; i++) {
			//お菓子の個数の取得
			int d = sc.nextInt();
			for(int j = 0;j < d;j++) {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			}
		}

		int answer = 0;
		for(int x = 0;x < okashiList.size();x++){
			if(okashiList.get(x) == 0) {
				answer ++ ;
			}
		}

		System.out.println(answer);

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();

		ArrayList<Integer> okashiList = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			okashiList.add(0);
		}

		//お菓子の種類だけ繰り返す
		for(int i = 0; i < K; i++) {
			//お菓子の個数の取得
			int d = sc.nextInt();
			for(int j = 0;j < d;j++) {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			}
		}

		int answer = 0;
		for(int x = 0;x < okashiList.size();x++){
			if(okashiList.get(x) == 0) {
				answer ++ ;
			}
		}

		System.out.println(answer);

	} 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 ArrayList<Integer> okashiList = new ArrayList<>(); okashiList new ArrayList<>() for(int i = 0; i < N; i++) {
			okashiList.add(0);
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			okashiList.add(0);
		} {
			okashiList.add(0);
		} okashiList.add(0) okashiList.add okashiList 0 for(int i = 0; i < K; i++) {
			//お菓子の個数の取得
			int d = sc.nextInt();
			for(int j = 0;j < d;j++) {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			}
		} 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 Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			}
		} {
			//お菓子の個数の取得
			int d = sc.nextInt();
			for(int j = 0;j < d;j++) {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j = 0;j < d;j++) {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			} {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			} int Ad = sc.nextInt(); Ad sc.nextInt() sc.nextInt sc okashiList.set(Ad-1, 10) okashiList.set okashiList Ad-1 Ad 1 10 int answer = 0; answer 0 for(int x = 0;x < okashiList.size();x++){
			if(okashiList.get(x) == 0) {
				answer ++ ;
			}
		} int x = 0; int x = 0; x 0 x < okashiList.size() x okashiList.size() okashiList.size okashiList x++ x++ x {
			if(okashiList.get(x) == 0) {
				answer ++ ;
			}
		} {
			if(okashiList.get(x) == 0) {
				answer ++ ;
			}
		} if(okashiList.get(x) == 0) {
				answer ++ ;
			} okashiList.get(x) == 0 okashiList.get(x) okashiList.get okashiList x 0 {
				answer ++ ;
			} answer ++ answer System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();

		ArrayList<Integer> okashiList = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			okashiList.add(0);
		}

		//お菓子の種類だけ繰り返す
		for(int i = 0; i < K; i++) {
			//お菓子の個数の取得
			int d = sc.nextInt();
			for(int j = 0;j < d;j++) {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			}
		}

		int answer = 0;
		for(int x = 0;x < okashiList.size();x++){
			if(okashiList.get(x) == 0) {
				answer ++ ;
			}
		}

		System.out.println(answer);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();

		ArrayList<Integer> okashiList = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			okashiList.add(0);
		}

		//お菓子の種類だけ繰り返す
		for(int i = 0; i < K; i++) {
			//お菓子の個数の取得
			int d = sc.nextInt();
			for(int j = 0;j < d;j++) {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			}
		}

		int answer = 0;
		for(int x = 0;x < okashiList.size();x++){
			if(okashiList.get(x) == 0) {
				answer ++ ;
			}
		}

		System.out.println(answer);

	}

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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();

		ArrayList<Integer> okashiList = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			okashiList.add(0);
		}

		//お菓子の種類だけ繰り返す
		for(int i = 0; i < K; i++) {
			//お菓子の個数の取得
			int d = sc.nextInt();
			for(int j = 0;j < d;j++) {
				int Ad = sc.nextInt();
				okashiList.set(Ad-1, 10);
			}
		}

		int answer = 0;
		for(int x = 0;x < okashiList.size();x++){
			if(okashiList.get(x) == 0) {
				answer ++ ;
			}
		}

		System.out.println(answer);

	}

}
