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();
		int a[] = new int[10000];
		boolean  data[] = new boolean[n+1];
		int count =0;

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

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

		System.out.println(count-1);
	}
} 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();
		int a[] = new int[10000];
		boolean  data[] = new boolean[n+1];
		int count =0;

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

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

		System.out.println(count-1);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();
		int a[] = new int[10000];
		boolean  data[] = new boolean[n+1];
		int count =0;

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

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

		System.out.println(count-1);
	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();
		int a[] = new int[10000];
		boolean  data[] = new boolean[n+1];
		int count =0;

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

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

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

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

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

		System.out.println(count-1);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();
		int a[] = new int[10000];
		boolean  data[] = new boolean[n+1];
		int count =0;

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

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

		System.out.println(count-1);
	}
} 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();
		int a[] = new int[10000];
		boolean  data[] = new boolean[n+1];
		int count =0;

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

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

		System.out.println(count-1);
	}
}
