

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[] count = new int[n];
		for(int i = 0;i < n;i++) {
			count[i] = 0;
		}

		for(int j = 0;j < k;j++) {
			int[] d = new int[k];
			d[j] = sc.nextInt();
			int[] a = new int[d[j]];
			for(int i = 0;i < d[j];i++) {
				a[i] = sc.nextInt();
				for(int q = 0;q < n;q++) {
					if(a[i] == q+1) {
						count[q] = 1;
					}
				}
			}

		}


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

		System.out.println(totalcount);

	}
} 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[] count = new int[n];
		for(int i = 0;i < n;i++) {
			count[i] = 0;
		}

		for(int j = 0;j < k;j++) {
			int[] d = new int[k];
			d[j] = sc.nextInt();
			int[] a = new int[d[j]];
			for(int i = 0;i < d[j];i++) {
				a[i] = sc.nextInt();
				for(int q = 0;q < n;q++) {
					if(a[i] == q+1) {
						count[q] = 1;
					}
				}
			}

		}


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

		System.out.println(totalcount);

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();

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

		for(int j = 0;j < k;j++) {
			int[] d = new int[k];
			d[j] = sc.nextInt();
			int[] a = new int[d[j]];
			for(int i = 0;i < d[j];i++) {
				a[i] = sc.nextInt();
				for(int q = 0;q < n;q++) {
					if(a[i] == q+1) {
						count[q] = 1;
					}
				}
			}

		}


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

		System.out.println(totalcount);

	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();

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

		for(int j = 0;j < k;j++) {
			int[] d = new int[k];
			d[j] = sc.nextInt();
			int[] a = new int[d[j]];
			for(int i = 0;i < d[j];i++) {
				a[i] = sc.nextInt();
				for(int q = 0;q < n;q++) {
					if(a[i] == q+1) {
						count[q] = 1;
					}
				}
			}

		}


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

		System.out.println(totalcount);

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

		} int j = 0; int j = 0; j 0 j < k j k j++ j++ j {
			int[] d = new int[k];
			d[j] = sc.nextInt();
			int[] a = new int[d[j]];
			for(int i = 0;i < d[j];i++) {
				a[i] = sc.nextInt();
				for(int q = 0;q < n;q++) {
					if(a[i] == q+1) {
						count[q] = 1;
					}
				}
			}

		} {
			int[] d = new int[k];
			d[j] = sc.nextInt();
			int[] a = new int[d[j]];
			for(int i = 0;i < d[j];i++) {
				a[i] = sc.nextInt();
				for(int q = 0;q < n;q++) {
					if(a[i] == q+1) {
						count[q] = 1;
					}
				}
			}

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

		for(int j = 0;j < k;j++) {
			int[] d = new int[k];
			d[j] = sc.nextInt();
			int[] a = new int[d[j]];
			for(int i = 0;i < d[j];i++) {
				a[i] = sc.nextInt();
				for(int q = 0;q < n;q++) {
					if(a[i] == q+1) {
						count[q] = 1;
					}
				}
			}

		}


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

		System.out.println(totalcount);

	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();

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

		for(int j = 0;j < k;j++) {
			int[] d = new int[k];
			d[j] = sc.nextInt();
			int[] a = new int[d[j]];
			for(int i = 0;i < d[j];i++) {
				a[i] = sc.nextInt();
				for(int q = 0;q < n;q++) {
					if(a[i] == q+1) {
						count[q] = 1;
					}
				}
			}

		}


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

		System.out.println(totalcount);

	}
} 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[] count = new int[n];
		for(int i = 0;i < n;i++) {
			count[i] = 0;
		}

		for(int j = 0;j < k;j++) {
			int[] d = new int[k];
			d[j] = sc.nextInt();
			int[] a = new int[d[j]];
			for(int i = 0;i < d[j];i++) {
				a[i] = sc.nextInt();
				for(int q = 0;q < n;q++) {
					if(a[i] == q+1) {
						count[q] = 1;
					}
				}
			}

		}


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

		System.out.println(totalcount);

	}
}
