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();

		int[] array = new int[n];

		for(int i = 0; i < n; i++) {
			array[i] = 0;
		}

		for(int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++) {
				int a = sc.nextInt();
				array[a - 1] = 1;
			}
		}

		int ans = 0;

		for(int i = 0; i < n; i++) {
			if(array[i] == 0) {
				ans++;
			}
		}

		System.out.println(ans);

		sc.close();

	}

} 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();

		int[] array = new int[n];

		for(int i = 0; i < n; i++) {
			array[i] = 0;
		}

		for(int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++) {
				int a = sc.nextInt();
				array[a - 1] = 1;
			}
		}

		int ans = 0;

		for(int i = 0; i < n; i++) {
			if(array[i] == 0) {
				ans++;
			}
		}

		System.out.println(ans);

		sc.close();

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();

		int[] array = new int[n];

		for(int i = 0; i < n; i++) {
			array[i] = 0;
		}

		for(int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++) {
				int a = sc.nextInt();
				array[a - 1] = 1;
			}
		}

		int ans = 0;

		for(int i = 0; i < n; i++) {
			if(array[i] == 0) {
				ans++;
			}
		}

		System.out.println(ans);

		sc.close();

	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();

		int[] array = new int[n];

		for(int i = 0; i < n; i++) {
			array[i] = 0;
		}

		for(int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++) {
				int a = sc.nextInt();
				array[a - 1] = 1;
			}
		}

		int ans = 0;

		for(int i = 0; i < n; i++) {
			if(array[i] == 0) {
				ans++;
			}
		}

		System.out.println(ans);

		sc.close();

	} 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 int[] array = new int[n]; array new int[n] n for(int i = 0; i < n; i++) {
			array[i] = 0;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			array[i] = 0;
		} {
			array[i] = 0;
		} array[i] = 0 array[i] array i 0 for(int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++) {
				int a = sc.nextInt();
				array[a - 1] = 1;
			}
		} 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();
				array[a - 1] = 1;
			}
		} {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++) {
				int a = sc.nextInt();
				array[a - 1] = 1;
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j = 0; j < d; j++) {
				int a = sc.nextInt();
				array[a - 1] = 1;
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				int a = sc.nextInt();
				array[a - 1] = 1;
			} {
				int a = sc.nextInt();
				array[a - 1] = 1;
			} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc array[a - 1] = 1 array[a - 1] array a - 1 a 1 1 int ans = 0; ans 0 for(int i = 0; i < n; i++) {
			if(array[i] == 0) {
				ans++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if(array[i] == 0) {
				ans++;
			}
		} {
			if(array[i] == 0) {
				ans++;
			}
		} if(array[i] == 0) {
				ans++;
			} array[i] == 0 array[i] array i 0 {
				ans++;
			} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc 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();

		int[] array = new int[n];

		for(int i = 0; i < n; i++) {
			array[i] = 0;
		}

		for(int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++) {
				int a = sc.nextInt();
				array[a - 1] = 1;
			}
		}

		int ans = 0;

		for(int i = 0; i < n; i++) {
			if(array[i] == 0) {
				ans++;
			}
		}

		System.out.println(ans);

		sc.close();

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();

		int[] array = new int[n];

		for(int i = 0; i < n; i++) {
			array[i] = 0;
		}

		for(int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++) {
				int a = sc.nextInt();
				array[a - 1] = 1;
			}
		}

		int ans = 0;

		for(int i = 0; i < n; i++) {
			if(array[i] == 0) {
				ans++;
			}
		}

		System.out.println(ans);

		sc.close();

	}

} Main
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();

		int[] array = new int[n];

		for(int i = 0; i < n; i++) {
			array[i] = 0;
		}

		for(int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++) {
				int a = sc.nextInt();
				array[a - 1] = 1;
			}
		}

		int ans = 0;

		for(int i = 0; i < n; i++) {
			if(array[i] == 0) {
				ans++;
			}
		}

		System.out.println(ans);

		sc.close();

	}

}
