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 have[] = new int[n];
 		
		for(int i=0;i<k;i++) {
			int d = scan.nextInt();
			for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			}
		}
		
		int ans = 0;
		for(int i=0;i<n;i++) {
			if(have[i] == 0) {
				ans += 1;
			}
		}
		
		System.out.println(ans);
		
	}
} 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 have[] = new int[n];
 		
		for(int i=0;i<k;i++) {
			int d = scan.nextInt();
			for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			}
		}
		
		int ans = 0;
		for(int i=0;i<n;i++) {
			if(have[i] == 0) {
				ans += 1;
			}
		}
		
		System.out.println(ans);
		
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int k = scan.nextInt();
		int have[] = new int[n];
 		
		for(int i=0;i<k;i++) {
			int d = scan.nextInt();
			for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			}
		}
		
		int ans = 0;
		for(int i=0;i<n;i++) {
			if(have[i] == 0) {
				ans += 1;
			}
		}
		
		System.out.println(ans);
		
	} main {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int k = scan.nextInt();
		int have[] = new int[n];
 		
		for(int i=0;i<k;i++) {
			int d = scan.nextInt();
			for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			}
		}
		
		int ans = 0;
		for(int i=0;i<n;i++) {
			if(have[i] == 0) {
				ans += 1;
			}
		}
		
		System.out.println(ans);
		
	} 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 have[] = new int[n]; have new int[n] n for(int i=0;i<k;i++) {
			int d = scan.nextInt();
			for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			}
		} int i=0; int i=0; i 0 i<k i k i++ i++ i {
			int d = scan.nextInt();
			for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			}
		} {
			int d = scan.nextInt();
			for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			}
		} int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			} int j=0; int j=0; j 0 j<d j d j++ j++ j {
				int take = scan.nextInt();
				have[take-1] = 1;
			} {
				int take = scan.nextInt();
				have[take-1] = 1;
			} int take = scan.nextInt(); take scan.nextInt() scan.nextInt scan have[take-1] = 1 have[take-1] have take-1 take 1 1 int ans = 0; ans 0 for(int i=0;i<n;i++) {
			if(have[i] == 0) {
				ans += 1;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			if(have[i] == 0) {
				ans += 1;
			}
		} {
			if(have[i] == 0) {
				ans += 1;
			}
		} if(have[i] == 0) {
				ans += 1;
			} have[i] == 0 have[i] have i 0 {
				ans += 1;
			} ans += 1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans 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 have[] = new int[n];
 		
		for(int i=0;i<k;i++) {
			int d = scan.nextInt();
			for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			}
		}
		
		int ans = 0;
		for(int i=0;i<n;i++) {
			if(have[i] == 0) {
				ans += 1;
			}
		}
		
		System.out.println(ans);
		
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int k = scan.nextInt();
		int have[] = new int[n];
 		
		for(int i=0;i<k;i++) {
			int d = scan.nextInt();
			for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			}
		}
		
		int ans = 0;
		for(int i=0;i<n;i++) {
			if(have[i] == 0) {
				ans += 1;
			}
		}
		
		System.out.println(ans);
		
	}
} 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 have[] = new int[n];
 		
		for(int i=0;i<k;i++) {
			int d = scan.nextInt();
			for(int j=0;j<d;j++) {
				int take = scan.nextInt();
				have[take-1] = 1;
			}
		}
		
		int ans = 0;
		for(int i=0;i<n;i++) {
			if(have[i] == 0) {
				ans += 1;
			}
		}
		
		System.out.println(ans);
		
	}
}