import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        int k = scn.nextInt();

        int[] s = new int[n];
        Arrays.fill(s, 1);

        for (int i = 0; i < k; i++) {
            int d = scn.nextInt();
            for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            }
        }

        int ans = 0;

        for (int i = 0; i < n; i++) {
            ans = ans + s[i];
        }

        System.out.println(ans);


        scn.close();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
        Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        int k = scn.nextInt();

        int[] s = new int[n];
        Arrays.fill(s, 1);

        for (int i = 0; i < k; i++) {
            int d = scn.nextInt();
            for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            }
        }

        int ans = 0;

        for (int i = 0; i < n; i++) {
            ans = ans + s[i];
        }

        System.out.println(ans);


        scn.close();
    }
} Main public static void main(String args[]) {
        Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        int k = scn.nextInt();

        int[] s = new int[n];
        Arrays.fill(s, 1);

        for (int i = 0; i < k; i++) {
            int d = scn.nextInt();
            for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            }
        }

        int ans = 0;

        for (int i = 0; i < n; i++) {
            ans = ans + s[i];
        }

        System.out.println(ans);


        scn.close();
    } main {
        Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        int k = scn.nextInt();

        int[] s = new int[n];
        Arrays.fill(s, 1);

        for (int i = 0; i < k; i++) {
            int d = scn.nextInt();
            for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            }
        }

        int ans = 0;

        for (int i = 0; i < n; i++) {
            ans = ans + s[i];
        }

        System.out.println(ans);


        scn.close();
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn int k = scn.nextInt(); k scn.nextInt() scn.nextInt scn int[] s = new int[n]; s new int[n] n Arrays.fill(s, 1) Arrays.fill Arrays s 1 for (int i = 0; i < k; i++) {
            int d = scn.nextInt();
            for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            }
        } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
            int d = scn.nextInt();
            for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            }
        } {
            int d = scn.nextInt();
            for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            }
        } int d = scn.nextInt(); d scn.nextInt() scn.nextInt scn for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            } int a = 0; int a = 0; a 0 a < d a d a++ a++ a {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            } {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            } int A = scn.nextInt(); A scn.nextInt() scn.nextInt scn s[(A - 1)] = 0 s[(A - 1)] s (A - 1) A 1 0 int ans = 0; ans 0 for (int i = 0; i < n; i++) {
            ans = ans + s[i];
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            ans = ans + s[i];
        } {
            ans = ans + s[i];
        } ans = ans + s[i] ans ans + s[i] ans s[i] s i System.out.println(ans) System.out.println System.out System System.out ans scn.close() scn.close scn String args[] args public class Main {
    public static void main(String args[]) {
        Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        int k = scn.nextInt();

        int[] s = new int[n];
        Arrays.fill(s, 1);

        for (int i = 0; i < k; i++) {
            int d = scn.nextInt();
            for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            }
        }

        int ans = 0;

        for (int i = 0; i < n; i++) {
            ans = ans + s[i];
        }

        System.out.println(ans);


        scn.close();
    }
} public class Main {
    public static void main(String args[]) {
        Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        int k = scn.nextInt();

        int[] s = new int[n];
        Arrays.fill(s, 1);

        for (int i = 0; i < k; i++) {
            int d = scn.nextInt();
            for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            }
        }

        int ans = 0;

        for (int i = 0; i < n; i++) {
            ans = ans + s[i];
        }

        System.out.println(ans);


        scn.close();
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        int k = scn.nextInt();

        int[] s = new int[n];
        Arrays.fill(s, 1);

        for (int i = 0; i < k; i++) {
            int d = scn.nextInt();
            for (int a = 0; a < d; a++) {
                int A = scn.nextInt();
                s[(A - 1)] = 0;
            }
        }

        int ans = 0;

        for (int i = 0; i < n; i++) {
            ans = ans + s[i];
        }

        System.out.println(ans);


        scn.close();
    }
}