import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		int d;
		int a;;
		boolean[] b = new boolean[n+1];
		int count = 0;

		for(int i=1;i<=k;i++) {
			d = scan.nextInt();
			for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			}
		}

		for(int i=1;i<=n;i++) {
			if(!b[i]) {
				count++;
			}
		}
		System.out.println(count);

	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		int d;
		int a;;
		boolean[] b = new boolean[n+1];
		int count = 0;

		for(int i=1;i<=k;i++) {
			d = scan.nextInt();
			for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			}
		}

		for(int i=1;i<=n;i++) {
			if(!b[i]) {
				count++;
			}
		}
		System.out.println(count);

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		int d;
		int a;;
		boolean[] b = new boolean[n+1];
		int count = 0;

		for(int i=1;i<=k;i++) {
			d = scan.nextInt();
			for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			}
		}

		for(int i=1;i<=n;i++) {
			if(!b[i]) {
				count++;
			}
		}
		System.out.println(count);

	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		int d;
		int a;;
		boolean[] b = new boolean[n+1];
		int count = 0;

		for(int i=1;i<=k;i++) {
			d = scan.nextInt();
			for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			}
		}

		for(int i=1;i<=n;i++) {
			if(!b[i]) {
				count++;
			}
		}
		System.out.println(count);

	} 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 int d; d int a; a boolean[] b = new boolean[n+1]; b new boolean[n+1] n+1 n 1 int count = 0; count 0 for(int i=1;i<=k;i++) {
			d = scan.nextInt();
			for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			}
		} int i=1; int i=1; i 1 i<=k i k i++ i++ i {
			d = scan.nextInt();
			for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			}
		} {
			d = scan.nextInt();
			for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			}
		} d = scan.nextInt() d scan.nextInt() scan.nextInt scan for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			} int j=1; int j=1; j 1 j<=d j d j++ j++ j {
				a = scan.nextInt();
				b[a] = true;
			} {
				a = scan.nextInt();
				b[a] = true;
			} a = scan.nextInt() a scan.nextInt() scan.nextInt scan b[a] = true b[a] b a true for(int i=1;i<=n;i++) {
			if(!b[i]) {
				count++;
			}
		} int i=1; int i=1; i 1 i<=n i n i++ i++ i {
			if(!b[i]) {
				count++;
			}
		} {
			if(!b[i]) {
				count++;
			}
		} if(!b[i]) {
				count++;
			} !b[i] b[i] b i {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		int d;
		int a;;
		boolean[] b = new boolean[n+1];
		int count = 0;

		for(int i=1;i<=k;i++) {
			d = scan.nextInt();
			for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			}
		}

		for(int i=1;i<=n;i++) {
			if(!b[i]) {
				count++;
			}
		}
		System.out.println(count);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		int d;
		int a;;
		boolean[] b = new boolean[n+1];
		int count = 0;

		for(int i=1;i<=k;i++) {
			d = scan.nextInt();
			for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			}
		}

		for(int i=1;i<=n;i++) {
			if(!b[i]) {
				count++;
			}
		}
		System.out.println(count);

	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		int d;
		int a;;
		boolean[] b = new boolean[n+1];
		int count = 0;

		for(int i=1;i<=k;i++) {
			d = scan.nextInt();
			for(int j=1;j<=d;j++) {
				a = scan.nextInt();
				b[a] = true;
			}
		}

		for(int i=1;i<=n;i++) {
			if(!b[i]) {
				count++;
			}
		}
		System.out.println(count);

	}

}