import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int k = sc.nextInt();
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a.add(sc.nextInt());
			}
		}
		List<Integer> result = new ArrayList<Integer>(new HashSet<>(a));
		System.out.println(n - result.size());


	}
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.HashSet; HashSet java.util import java.util.List; List 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();
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a.add(sc.nextInt());
			}
		}
		List<Integer> result = new ArrayList<Integer>(new HashSet<>(a));
		System.out.println(n - result.size());


	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int k = sc.nextInt();
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a.add(sc.nextInt());
			}
		}
		List<Integer> result = new ArrayList<Integer>(new HashSet<>(a));
		System.out.println(n - result.size());


	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int k = sc.nextInt();
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a.add(sc.nextInt());
			}
		}
		List<Integer> result = new ArrayList<Integer>(new HashSet<>(a));
		System.out.println(n - result.size());


	} 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 ArrayList<Integer> a = new ArrayList<>(); a new ArrayList<>() for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a.add(sc.nextInt());
			}
		} 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.add(sc.nextInt());
			}
		} {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a.add(sc.nextInt());
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j = 0; j < d; j++){
				a.add(sc.nextInt());
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				a.add(sc.nextInt());
			} {
				a.add(sc.nextInt());
			} a.add(sc.nextInt()) a.add a sc.nextInt() sc.nextInt sc List<Integer> result = new ArrayList<Integer>(new HashSet<>(a)); result new ArrayList<Integer>(new HashSet<>(a)) System.out.println(n - result.size()) System.out.println System.out System System.out n - result.size() n result.size() result.size result 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();
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a.add(sc.nextInt());
			}
		}
		List<Integer> result = new ArrayList<Integer>(new HashSet<>(a));
		System.out.println(n - result.size());


	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int k = sc.nextInt();
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a.add(sc.nextInt());
			}
		}
		List<Integer> result = new ArrayList<Integer>(new HashSet<>(a));
		System.out.println(n - result.size());


	}
} Main
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int k = sc.nextInt();
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a.add(sc.nextInt());
			}
		}
		List<Integer> result = new ArrayList<Integer>(new HashSet<>(a));
		System.out.println(n - result.size());


	}
}
