import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int k = Integer.parseInt(scan.next());
		int[] sunuke = new int[n];
		for(int i = 0;i < k; ++i){
			int d = Integer.parseInt(scan.next());
			for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			}
		}
		int count = 0;
		for(int i :sunuke){
			if(i == 0)count++;
		}
		System.out.print(count);
	}
}
 import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int k = Integer.parseInt(scan.next());
		int[] sunuke = new int[n];
		for(int i = 0;i < k; ++i){
			int d = Integer.parseInt(scan.next());
			for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			}
		}
		int count = 0;
		for(int i :sunuke){
			if(i == 0)count++;
		}
		System.out.print(count);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int k = Integer.parseInt(scan.next());
		int[] sunuke = new int[n];
		for(int i = 0;i < k; ++i){
			int d = Integer.parseInt(scan.next());
			for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			}
		}
		int count = 0;
		for(int i :sunuke){
			if(i == 0)count++;
		}
		System.out.print(count);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int k = Integer.parseInt(scan.next());
		int[] sunuke = new int[n];
		for(int i = 0;i < k; ++i){
			int d = Integer.parseInt(scan.next());
			for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			}
		}
		int count = 0;
		for(int i :sunuke){
			if(i == 0)count++;
		}
		System.out.print(count);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.next()); n Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int k = Integer.parseInt(scan.next()); k Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int[] sunuke = new int[n]; sunuke new int[n] n for(int i = 0;i < k; ++i){
			int d = Integer.parseInt(scan.next());
			for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			}
		} int i = 0; int i = 0; i 0 i < k i k ++i ++i i {
			int d = Integer.parseInt(scan.next());
			for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			}
		} {
			int d = Integer.parseInt(scan.next());
			for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			}
		} int d = Integer.parseInt(scan.next()); d Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			} int j = 0; int j = 0; j 0 j < d j d ++j ++j j {
				sunuke[Integer.parseInt(scan.next())-1]++;
			} {
				sunuke[Integer.parseInt(scan.next())-1]++;
			} sunuke[Integer.parseInt(scan.next())-1]++ sunuke[Integer.parseInt(scan.next())-1] sunuke Integer.parseInt(scan.next())-1 Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan 1 int count = 0; count 0 for(int i :sunuke){
			if(i == 0)count++;
		} int i sunuke {
			if(i == 0)count++;
		} {
			if(i == 0)count++;
		} if(i == 0)count++; i == 0 i 0 count++ count System.out.print(count) System.out.print 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 = Integer.parseInt(scan.next());
		int k = Integer.parseInt(scan.next());
		int[] sunuke = new int[n];
		for(int i = 0;i < k; ++i){
			int d = Integer.parseInt(scan.next());
			for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			}
		}
		int count = 0;
		for(int i :sunuke){
			if(i == 0)count++;
		}
		System.out.print(count);
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int k = Integer.parseInt(scan.next());
		int[] sunuke = new int[n];
		for(int i = 0;i < k; ++i){
			int d = Integer.parseInt(scan.next());
			for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			}
		}
		int count = 0;
		for(int i :sunuke){
			if(i == 0)count++;
		}
		System.out.print(count);
	}
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int k = Integer.parseInt(scan.next());
		int[] sunuke = new int[n];
		for(int i = 0;i < k; ++i){
			int d = Integer.parseInt(scan.next());
			for(int j = 0;j < d; ++j){
				sunuke[Integer.parseInt(scan.next())-1]++;
			}
		}
		int count = 0;
		for(int i :sunuke){
			if(i == 0)count++;
		}
		System.out.print(count);
	}
}

