import 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();
		boolean[] snuke = new boolean[N];
		for (int i=0;i<K;i++) {
			int d = sc.nextInt();
			for (int j=0;j<d;j++) {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			}
		}
		int ans = 0;
		for (int i=0;i<N;i++) {
			if (!snuke[i]) ans++;
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] snuke = new boolean[N];
		for (int i=0;i<K;i++) {
			int d = sc.nextInt();
			for (int j=0;j<d;j++) {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			}
		}
		int ans = 0;
		for (int i=0;i<N;i++) {
			if (!snuke[i]) ans++;
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] snuke = new boolean[N];
		for (int i=0;i<K;i++) {
			int d = sc.nextInt();
			for (int j=0;j<d;j++) {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			}
		}
		int ans = 0;
		for (int i=0;i<N;i++) {
			if (!snuke[i]) ans++;
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] snuke = new boolean[N];
		for (int i=0;i<K;i++) {
			int d = sc.nextInt();
			for (int j=0;j<d;j++) {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			}
		}
		int ans = 0;
		for (int i=0;i<N;i++) {
			if (!snuke[i]) ans++;
		}
		System.out.println(ans);
	} 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 boolean[] snuke = new boolean[N]; snuke new boolean[N] N for (int i=0;i<K;i++) {
			int d = sc.nextInt();
			for (int j=0;j<d;j++) {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			}
		} 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()-1;
				snuke[A] = true;
			}
		} {
			int d = sc.nextInt();
			for (int j=0;j<d;j++) {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j=0;j<d;j++) {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			} int j=0; int j=0; j 0 j<d j d j++ j++ j {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			} {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			} int A = sc.nextInt()-1; A sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 snuke[A] = true snuke[A] snuke A true int ans = 0; ans 0 for (int i=0;i<N;i++) {
			if (!snuke[i]) ans++;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			if (!snuke[i]) ans++;
		} {
			if (!snuke[i]) ans++;
		} if (!snuke[i]) ans++; !snuke[i] snuke[i] snuke i ans++ ans System.out.println(ans) System.out.println System.out System System.out ans 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();
		boolean[] snuke = new boolean[N];
		for (int i=0;i<K;i++) {
			int d = sc.nextInt();
			for (int j=0;j<d;j++) {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			}
		}
		int ans = 0;
		for (int i=0;i<N;i++) {
			if (!snuke[i]) ans++;
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] snuke = new boolean[N];
		for (int i=0;i<K;i++) {
			int d = sc.nextInt();
			for (int j=0;j<d;j++) {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			}
		}
		int ans = 0;
		for (int i=0;i<N;i++) {
			if (!snuke[i]) ans++;
		}
		System.out.println(ans);
	}
} Main
import 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();
		boolean[] snuke = new boolean[N];
		for (int i=0;i<K;i++) {
			int d = sc.nextInt();
			for (int j=0;j<d;j++) {
				int A = sc.nextInt()-1;
				snuke[A] = true;
			}
		}
		int ans = 0;
		for (int i=0;i<N;i++) {
			if (!snuke[i]) ans++;
		}
		System.out.println(ans);
	}
}