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();
        sc.nextLine();
        int[] sunuke = new int[N];
        int kagaisha = 0;

        for (int i = 0; i < K; i++) {
            int okashi_num = Integer.parseInt(sc.nextLine());
            
            for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            }
            sc.nextLine();
        }

        for (int i = 0; i < N; i++) {
            if (sunuke[i] == 0) {
                kagaisha++;
            }
        }
        
        System.out.println(kagaisha);
    }
} 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();
        sc.nextLine();
        int[] sunuke = new int[N];
        int kagaisha = 0;

        for (int i = 0; i < K; i++) {
            int okashi_num = Integer.parseInt(sc.nextLine());
            
            for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            }
            sc.nextLine();
        }

        for (int i = 0; i < N; i++) {
            if (sunuke[i] == 0) {
                kagaisha++;
            }
        }
        
        System.out.println(kagaisha);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int K = sc.nextInt();
        sc.nextLine();
        int[] sunuke = new int[N];
        int kagaisha = 0;

        for (int i = 0; i < K; i++) {
            int okashi_num = Integer.parseInt(sc.nextLine());
            
            for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            }
            sc.nextLine();
        }

        for (int i = 0; i < N; i++) {
            if (sunuke[i] == 0) {
                kagaisha++;
            }
        }
        
        System.out.println(kagaisha);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int K = sc.nextInt();
        sc.nextLine();
        int[] sunuke = new int[N];
        int kagaisha = 0;

        for (int i = 0; i < K; i++) {
            int okashi_num = Integer.parseInt(sc.nextLine());
            
            for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            }
            sc.nextLine();
        }

        for (int i = 0; i < N; i++) {
            if (sunuke[i] == 0) {
                kagaisha++;
            }
        }
        
        System.out.println(kagaisha);
    } 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 sc.nextLine() sc.nextLine sc int[] sunuke = new int[N]; sunuke new int[N] N int kagaisha = 0; kagaisha 0 for (int i = 0; i < K; i++) {
            int okashi_num = Integer.parseInt(sc.nextLine());
            
            for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            }
            sc.nextLine();
        } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
            int okashi_num = Integer.parseInt(sc.nextLine());
            
            for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            }
            sc.nextLine();
        } {
            int okashi_num = Integer.parseInt(sc.nextLine());
            
            for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            }
            sc.nextLine();
        } int okashi_num = Integer.parseInt(sc.nextLine()); okashi_num Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            } int j = 0; int j = 0; j 0 j < okashi_num j okashi_num j++ j++ j {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            } {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            } int sunuke_num = sc.nextInt(); sunuke_num sc.nextInt() sc.nextInt sc sunuke[sunuke_num-1]++ sunuke[sunuke_num-1] sunuke sunuke_num-1 sunuke_num 1 sc.nextLine() sc.nextLine sc for (int i = 0; i < N; i++) {
            if (sunuke[i] == 0) {
                kagaisha++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if (sunuke[i] == 0) {
                kagaisha++;
            }
        } {
            if (sunuke[i] == 0) {
                kagaisha++;
            }
        } if (sunuke[i] == 0) {
                kagaisha++;
            } sunuke[i] == 0 sunuke[i] sunuke i 0 {
                kagaisha++;
            } kagaisha++ kagaisha System.out.println(kagaisha) System.out.println System.out System System.out kagaisha 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();
        sc.nextLine();
        int[] sunuke = new int[N];
        int kagaisha = 0;

        for (int i = 0; i < K; i++) {
            int okashi_num = Integer.parseInt(sc.nextLine());
            
            for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            }
            sc.nextLine();
        }

        for (int i = 0; i < N; i++) {
            if (sunuke[i] == 0) {
                kagaisha++;
            }
        }
        
        System.out.println(kagaisha);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int K = sc.nextInt();
        sc.nextLine();
        int[] sunuke = new int[N];
        int kagaisha = 0;

        for (int i = 0; i < K; i++) {
            int okashi_num = Integer.parseInt(sc.nextLine());
            
            for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            }
            sc.nextLine();
        }

        for (int i = 0; i < N; i++) {
            if (sunuke[i] == 0) {
                kagaisha++;
            }
        }
        
        System.out.println(kagaisha);
    }
} 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();
        sc.nextLine();
        int[] sunuke = new int[N];
        int kagaisha = 0;

        for (int i = 0; i < K; i++) {
            int okashi_num = Integer.parseInt(sc.nextLine());
            
            for(int j = 0; j < okashi_num; j++) {
                int sunuke_num = sc.nextInt();
                sunuke[sunuke_num-1]++;
            }
            sc.nextLine();
        }

        for (int i = 0; i < N; i++) {
            if (sunuke[i] == 0) {
                kagaisha++;
            }
        }
        
        System.out.println(kagaisha);
    }
}