import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) {
        FastReader reader = new FastReader();
        BufferedWriter log = new BufferedWriter(new OutputStreamWriter(System.out));
        try {
            int n, k;
            n = reader.nextInt();
            k = reader.nextInt();

            boolean haveSnacks[] = new boolean[n];

            for (int j = 0; j < k; j++) {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            }
            
            int ans = 0;
            for (int j = 0; j < n; j++) {
                if (!haveSnacks[j])
                    ans++;
            }
            
            log.write(ans + "\n");
            log.flush();
            log.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
class FastReader {
    BufferedReader br;
    StringTokenizer st;

    public FastReader() {
        br = new BufferedReader(new InputStreamReader(System.in));
    }

    public String next() {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

    public int nextInt() {
        return Integer.parseInt(next());
    }

    public long nextLong() {
        return Long.parseLong(next());
    }

    public String nextLine() {
        String str = "";
        try {
            str = br.readLine();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return str;
    }
} import java.io.BufferedWriter; BufferedWriter java.io import java.io.OutputStreamWriter; OutputStreamWriter java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    public static void main(String[] args) {
        FastReader reader = new FastReader();
        BufferedWriter log = new BufferedWriter(new OutputStreamWriter(System.out));
        try {
            int n, k;
            n = reader.nextInt();
            k = reader.nextInt();

            boolean haveSnacks[] = new boolean[n];

            for (int j = 0; j < k; j++) {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            }
            
            int ans = 0;
            for (int j = 0; j < n; j++) {
                if (!haveSnacks[j])
                    ans++;
            }
            
            log.write(ans + "\n");
            log.flush();
            log.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String[] args) {
        FastReader reader = new FastReader();
        BufferedWriter log = new BufferedWriter(new OutputStreamWriter(System.out));
        try {
            int n, k;
            n = reader.nextInt();
            k = reader.nextInt();

            boolean haveSnacks[] = new boolean[n];

            for (int j = 0; j < k; j++) {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            }
            
            int ans = 0;
            for (int j = 0; j < n; j++) {
                if (!haveSnacks[j])
                    ans++;
            }
            
            log.write(ans + "\n");
            log.flush();
            log.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    } main {
        FastReader reader = new FastReader();
        BufferedWriter log = new BufferedWriter(new OutputStreamWriter(System.out));
        try {
            int n, k;
            n = reader.nextInt();
            k = reader.nextInt();

            boolean haveSnacks[] = new boolean[n];

            for (int j = 0; j < k; j++) {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            }
            
            int ans = 0;
            for (int j = 0; j < n; j++) {
                if (!haveSnacks[j])
                    ans++;
            }
            
            log.write(ans + "\n");
            log.flush();
            log.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    } FastReader reader = new FastReader(); reader new FastReader() BufferedWriter log = new BufferedWriter(new OutputStreamWriter(System.out)); log new BufferedWriter(new OutputStreamWriter(System.out)) try {
            int n, k;
            n = reader.nextInt();
            k = reader.nextInt();

            boolean haveSnacks[] = new boolean[n];

            for (int j = 0; j < k; j++) {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            }
            
            int ans = 0;
            for (int j = 0; j < n; j++) {
                if (!haveSnacks[j])
                    ans++;
            }
            
            log.write(ans + "\n");
            log.flush();
            log.close();
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            int n, k;
            n = reader.nextInt();
            k = reader.nextInt();

            boolean haveSnacks[] = new boolean[n];

            for (int j = 0; j < k; j++) {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            }
            
            int ans = 0;
            for (int j = 0; j < n; j++) {
                if (!haveSnacks[j])
                    ans++;
            }
            
            log.write(ans + "\n");
            log.flush();
            log.close();
        } int n n k; k n = reader.nextInt() n reader.nextInt() reader.nextInt reader k = reader.nextInt() k reader.nextInt() reader.nextInt reader boolean haveSnacks[] = new boolean[n]; haveSnacks new boolean[n] n for (int j = 0; j < k; j++) {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            } int j = 0; int j = 0; j 0 j < k j k j++ j++ j {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            } {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            } int d = reader.nextInt(); d reader.nextInt() reader.nextInt reader for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                } int x = 0; int x = 0; x 0 x < d x d x++ x++ x {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                } {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                } int a = reader.nextInt(); a reader.nextInt() reader.nextInt reader haveSnacks[a - 1] = true haveSnacks[a - 1] haveSnacks a - 1 a 1 true int ans = 0; ans 0 for (int j = 0; j < n; j++) {
                if (!haveSnacks[j])
                    ans++;
            } int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
                if (!haveSnacks[j])
                    ans++;
            } {
                if (!haveSnacks[j])
                    ans++;
            } if (!haveSnacks[j])
                    ans++; !haveSnacks[j] haveSnacks[j] haveSnacks j ans++ ans log.write(ans + "\n") log.write log ans + "\n" ans "\n" log.flush() log.flush log log.close() log.close log String[] args args class FastReader {
    BufferedReader br;
    StringTokenizer st;

    public FastReader() {
        br = new BufferedReader(new InputStreamReader(System.in));
    }

    public String next() {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

    public int nextInt() {
        return Integer.parseInt(next());
    }

    public long nextLong() {
        return Long.parseLong(next());
    }

    public String nextLine() {
        String str = "";
        try {
            str = br.readLine();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return str;
    }
} FastReader BufferedReader br; br StringTokenizer st; st public FastReader() {
        br = new BufferedReader(new InputStreamReader(System.in));
    } FastReader {
        br = new BufferedReader(new InputStreamReader(System.in));
    } br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) public String next() {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    } next {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    } while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                e.printStackTrace();
            }
        } st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                e.printStackTrace();
            }
        } try {
                st = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                e.printStackTrace();
            } catch (Exception e) {
                e.printStackTrace();
            } Exception e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                st = new StringTokenizer(br.readLine());
            } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st public int nextInt() {
        return Integer.parseInt(next());
    } nextInt {
        return Integer.parseInt(next());
    } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public long nextLong() {
        return Long.parseLong(next());
    } nextLong {
        return Long.parseLong(next());
    } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public String nextLine() {
        String str = "";
        try {
            str = br.readLine();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return str;
    } nextLine {
        String str = "";
        try {
            str = br.readLine();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return str;
    } String str = ""; str "" try {
            str = br.readLine();
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            str = br.readLine();
        } str = br.readLine() str br.readLine() br.readLine br return str; str public class Main {
    public static void main(String[] args) {
        FastReader reader = new FastReader();
        BufferedWriter log = new BufferedWriter(new OutputStreamWriter(System.out));
        try {
            int n, k;
            n = reader.nextInt();
            k = reader.nextInt();

            boolean haveSnacks[] = new boolean[n];

            for (int j = 0; j < k; j++) {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            }
            
            int ans = 0;
            for (int j = 0; j < n; j++) {
                if (!haveSnacks[j])
                    ans++;
            }
            
            log.write(ans + "\n");
            log.flush();
            log.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} public class Main {
    public static void main(String[] args) {
        FastReader reader = new FastReader();
        BufferedWriter log = new BufferedWriter(new OutputStreamWriter(System.out));
        try {
            int n, k;
            n = reader.nextInt();
            k = reader.nextInt();

            boolean haveSnacks[] = new boolean[n];

            for (int j = 0; j < k; j++) {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            }
            
            int ans = 0;
            for (int j = 0; j < n; j++) {
                if (!haveSnacks[j])
                    ans++;
            }
            
            log.write(ans + "\n");
            log.flush();
            log.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} Main
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) {
        FastReader reader = new FastReader();
        BufferedWriter log = new BufferedWriter(new OutputStreamWriter(System.out));
        try {
            int n, k;
            n = reader.nextInt();
            k = reader.nextInt();

            boolean haveSnacks[] = new boolean[n];

            for (int j = 0; j < k; j++) {
                int d = reader.nextInt();
                for (int x = 0; x < d; x++) {
                    int a = reader.nextInt();
                    haveSnacks[a - 1] = true;
                }
            }
            
            int ans = 0;
            for (int j = 0; j < n; j++) {
                if (!haveSnacks[j])
                    ans++;
            }
            
            log.write(ans + "\n");
            log.flush();
            log.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
class FastReader {
    BufferedReader br;
    StringTokenizer st;

    public FastReader() {
        br = new BufferedReader(new InputStreamReader(System.in));
    }

    public String next() {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

    public int nextInt() {
        return Integer.parseInt(next());
    }

    public long nextLong() {
        return Long.parseLong(next());
    }

    public String nextLine() {
        String str = "";
        try {
            str = br.readLine();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return str;
    }
}