import java.util.*;

class Main {
    private static Scanner sc;

    public static void main(final String[] args) {
        sc = new Scanner(System.in);
        int a = sc.nextInt(),b = sc.nextInt(),ans = 0;
        int[] list = new int[a];
        for(int i = 0; i < b; i++){
            int c = sc.nextInt();
            for (int j = 0; j < c; j++){
                list[sc.nextInt()-1] +=1;
            }
        }
        for(int x: list){
            if(x == 0) ans++;
        }
        System.out.println(ans);
    }
}





 import java.util.*; util.* java class Main {
    private static Scanner sc;

    public static void main(final String[] args) {
        sc = new Scanner(System.in);
        int a = sc.nextInt(),b = sc.nextInt(),ans = 0;
        int[] list = new int[a];
        for(int i = 0; i < b; i++){
            int c = sc.nextInt();
            for (int j = 0; j < c; j++){
                list[sc.nextInt()-1] +=1;
            }
        }
        for(int x: list){
            if(x == 0) ans++;
        }
        System.out.println(ans);
    }
} Main private static Scanner sc; sc public static void main(final String[] args) {
        sc = new Scanner(System.in);
        int a = sc.nextInt(),b = sc.nextInt(),ans = 0;
        int[] list = new int[a];
        for(int i = 0; i < b; i++){
            int c = sc.nextInt();
            for (int j = 0; j < c; j++){
                list[sc.nextInt()-1] +=1;
            }
        }
        for(int x: list){
            if(x == 0) ans++;
        }
        System.out.println(ans);
    } main {
        sc = new Scanner(System.in);
        int a = sc.nextInt(),b = sc.nextInt(),ans = 0;
        int[] list = new int[a];
        for(int i = 0; i < b; i++){
            int c = sc.nextInt();
            for (int j = 0; j < c; j++){
                list[sc.nextInt()-1] +=1;
            }
        }
        for(int x: list){
            if(x == 0) ans++;
        }
        System.out.println(ans);
    } sc = new Scanner(System.in) sc new Scanner(System.in) int a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc ans = 0; ans 0 int[] list = new int[a]; list new int[a] a for(int i = 0; i < b; i++){
            int c = sc.nextInt();
            for (int j = 0; j < c; j++){
                list[sc.nextInt()-1] +=1;
            }
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            int c = sc.nextInt();
            for (int j = 0; j < c; j++){
                list[sc.nextInt()-1] +=1;
            }
        } {
            int c = sc.nextInt();
            for (int j = 0; j < c; j++){
                list[sc.nextInt()-1] +=1;
            }
        } int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc for (int j = 0; j < c; j++){
                list[sc.nextInt()-1] +=1;
            } int j = 0; int j = 0; j 0 j < c j c j++ j++ j {
                list[sc.nextInt()-1] +=1;
            } {
                list[sc.nextInt()-1] +=1;
            } list[sc.nextInt()-1] +=1 list[sc.nextInt()-1] list sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 1 for(int x: list){
            if(x == 0) ans++;
        } int x list {
            if(x == 0) ans++;
        } {
            if(x == 0) ans++;
        } if(x == 0) ans++; x == 0 x 0 ans++ ans System.out.println(ans) System.out.println System.out System System.out ans final String[] args args
import java.util.*;

class Main {
    private static Scanner sc;

    public static void main(final String[] args) {
        sc = new Scanner(System.in);
        int a = sc.nextInt(),b = sc.nextInt(),ans = 0;
        int[] list = new int[a];
        for(int i = 0; i < b; i++){
            int c = sc.nextInt();
            for (int j = 0; j < c; j++){
                list[sc.nextInt()-1] +=1;
            }
        }
        for(int x: list){
            if(x == 0) ans++;
        }
        System.out.println(ans);
    }
}






