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();
        boolean[] valList = new boolean[n];
        Arrays.fill(valList, false);
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            }
        }
        sc.close();

        int result = 0;
        for (boolean b : valList) {
            if (!b) {
                result++;
            }
        }

        System.out.println(result);
    }

} 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();
        boolean[] valList = new boolean[n];
        Arrays.fill(valList, false);
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            }
        }
        sc.close();

        int result = 0;
        for (boolean b : valList) {
            if (!b) {
                result++;
            }
        }

        System.out.println(result);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        boolean[] valList = new boolean[n];
        Arrays.fill(valList, false);
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            }
        }
        sc.close();

        int result = 0;
        for (boolean b : valList) {
            if (!b) {
                result++;
            }
        }

        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        boolean[] valList = new boolean[n];
        Arrays.fill(valList, false);
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            }
        }
        sc.close();

        int result = 0;
        for (boolean b : valList) {
            if (!b) {
                result++;
            }
        }

        System.out.println(result);
    } 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 boolean[] valList = new boolean[n]; valList new boolean[n] n Arrays.fill(valList, false) Arrays.fill Arrays valList false for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            }
        } 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++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            }
        } {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            }
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            } {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            } int havingMan = sc.nextInt(); havingMan sc.nextInt() sc.nextInt sc valList[havingMan - 1] = true valList[havingMan - 1] valList havingMan - 1 havingMan 1 true sc.close() sc.close sc int result = 0; result 0 for (boolean b : valList) {
            if (!b) {
                result++;
            }
        } boolean b valList {
            if (!b) {
                result++;
            }
        } {
            if (!b) {
                result++;
            }
        } if (!b) {
                result++;
            } !b b {
                result++;
            } result++ result System.out.println(result) System.out.println System.out System System.out 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();
        boolean[] valList = new boolean[n];
        Arrays.fill(valList, false);
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            }
        }
        sc.close();

        int result = 0;
        for (boolean b : valList) {
            if (!b) {
                result++;
            }
        }

        System.out.println(result);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        boolean[] valList = new boolean[n];
        Arrays.fill(valList, false);
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            }
        }
        sc.close();

        int result = 0;
        for (boolean b : valList) {
            if (!b) {
                result++;
            }
        }

        System.out.println(result);
    }

} 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();
        boolean[] valList = new boolean[n];
        Arrays.fill(valList, false);
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int havingMan = sc.nextInt();
                valList[havingMan - 1] = true;
            }
        }
        sc.close();

        int result = 0;
        for (boolean b : valList) {
            if (!b) {
                result++;
            }
        }

        System.out.println(result);
    }

}