import java.util.HashMap;
import java.util.Map;
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();
		Map<Integer,String> m = new HashMap<Integer,String>();

		for(int i = 0;i < k;i++) {
			int d = sc.nextInt();
			for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			}
		}

		System.out.println(n - m.size());
	}
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util 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();
		Map<Integer,String> m = new HashMap<Integer,String>();

		for(int i = 0;i < k;i++) {
			int d = sc.nextInt();
			for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			}
		}

		System.out.println(n - m.size());
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		Map<Integer,String> m = new HashMap<Integer,String>();

		for(int i = 0;i < k;i++) {
			int d = sc.nextInt();
			for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			}
		}

		System.out.println(n - m.size());
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		Map<Integer,String> m = new HashMap<Integer,String>();

		for(int i = 0;i < k;i++) {
			int d = sc.nextInt();
			for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			}
		}

		System.out.println(n - m.size());
	} 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 Map<Integer,String> m = new HashMap<Integer,String>(); m new HashMap<Integer,String>() for(int i = 0;i < k;i++) {
			int d = sc.nextInt();
			for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			}
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			int d = sc.nextInt();
			for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			}
		} {
			int d = sc.nextInt();
			for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			} int x = 0; int x = 0; x 0 x < d x d x++ x++ x {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			} {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc m.put(Integer.valueOf(a), "a") m.put m Integer.valueOf(a) Integer.valueOf Integer a "a" System.out.println(n - m.size()) System.out.println System.out System System.out n - m.size() n m.size() m.size m 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();
		Map<Integer,String> m = new HashMap<Integer,String>();

		for(int i = 0;i < k;i++) {
			int d = sc.nextInt();
			for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			}
		}

		System.out.println(n - m.size());
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		Map<Integer,String> m = new HashMap<Integer,String>();

		for(int i = 0;i < k;i++) {
			int d = sc.nextInt();
			for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			}
		}

		System.out.println(n - m.size());
	}
} Main
import java.util.HashMap;
import java.util.Map;
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();
		Map<Integer,String> m = new HashMap<Integer,String>();

		for(int i = 0;i < k;i++) {
			int d = sc.nextInt();
			for(int x = 0;x < d;x++) {
				int a = sc.nextInt();
				m.put(Integer.valueOf(a), "a");
			}
		}

		System.out.println(n - m.size());
	}
}