import java.io.*;

import java.math.BigInteger;
import java.util.*;

import java.util.ArrayList;

import java.util.Scanner;


public class Main {

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

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

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

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

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

        double nextDouble() {
            return Double.parseDouble(next());
        }

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

    static final int mod = 1000000007;

    public static int gcd(int a, int b)
    {
        if (a == 0)
            return b;
        return gcd(b % a, a);
    }


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        HashMap<Integer,Integer>hm=new HashMap<>();
        for(int j=0;j<n;j++)
            hm.put(j+1,1);
        for(int j=0;j<k;j++)
        {
            int d=sc.nextInt();
            for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            }
        }
        System.out.println(hm.size());


    }
}






 import java.io.*; io.* java import java.math.BigInteger; BigInteger java.math import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

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

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

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

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

        double nextDouble() {
            return Double.parseDouble(next());
        }

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

    static final int mod = 1000000007;

    public static int gcd(int a, int b)
    {
        if (a == 0)
            return b;
        return gcd(b % a, a);
    }


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        HashMap<Integer,Integer>hm=new HashMap<>();
        for(int j=0;j<n;j++)
            hm.put(j+1,1);
        for(int j=0;j<k;j++)
        {
            int d=sc.nextInt();
            for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            }
        }
        System.out.println(hm.size());


    }
} Main static final int mod = 1000000007; mod 1000000007 public static int gcd(int a, int b)
    {
        if (a == 0)
            return b;
        return gcd(b % a, a);
    } gcd {
        if (a == 0)
            return b;
        return gcd(b % a, a);
    } if (a == 0)
            return b; a == 0 a 0 return b; b return gcd(b % a, a); gcd(b % a, a) gcd b % a b a a int a a int b b public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        HashMap<Integer,Integer>hm=new HashMap<>();
        for(int j=0;j<n;j++)
            hm.put(j+1,1);
        for(int j=0;j<k;j++)
        {
            int d=sc.nextInt();
            for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            }
        }
        System.out.println(hm.size());


    } main {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        HashMap<Integer,Integer>hm=new HashMap<>();
        for(int j=0;j<n;j++)
            hm.put(j+1,1);
        for(int j=0;j<k;j++)
        {
            int d=sc.nextInt();
            for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            }
        }
        System.out.println(hm.size());


    } 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 HashMap<Integer,Integer>hm=new HashMap<>(); hm new HashMap<>() for(int j=0;j<n;j++)
            hm.put(j+1,1); int j=0; int j=0; j 0 j<n j n j++ j++ j hm.put(j+1,1); hm.put(j+1,1) hm.put hm j+1 j 1 1 for(int j=0;j<k;j++)
        {
            int d=sc.nextInt();
            for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            }
        } int j=0; int j=0; j 0 j<k j k j++ j++ j {
            int d=sc.nextInt();
            for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            }
        } {
            int d=sc.nextInt();
            for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            }
        } int d=sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            } int l=0; int l=0; l 0 l<d l d l++ l++ l {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            } {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            } int m=sc.nextInt(); m sc.nextInt() sc.nextInt sc if(hm.get(m)!=null)
                    hm.remove(m); hm.get(m)!=null hm.get(m) hm.get hm m null hm.remove(m) hm.remove hm m System.out.println(hm.size()) System.out.println System.out System System.out hm.size() hm.size hm String[] args args static class FastReader {
        BufferedReader br;
        StringTokenizer st;

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

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

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

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

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException 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)) String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } next {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException 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 (IOException e) {
                    e.printStackTrace();
                }
            } try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                } IOException 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 int nextInt() {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() {
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble() {
            return Double.parseDouble(next());
        } nextDouble {
            return Double.parseDouble(next());
        } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        } nextLine {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        } String str = ""; str "" try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } IOException 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 {

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

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

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

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

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

        double nextDouble() {
            return Double.parseDouble(next());
        }

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

    static final int mod = 1000000007;

    public static int gcd(int a, int b)
    {
        if (a == 0)
            return b;
        return gcd(b % a, a);
    }


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        HashMap<Integer,Integer>hm=new HashMap<>();
        for(int j=0;j<n;j++)
            hm.put(j+1,1);
        for(int j=0;j<k;j++)
        {
            int d=sc.nextInt();
            for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            }
        }
        System.out.println(hm.size());


    }
} public class Main {

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

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

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

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

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

        double nextDouble() {
            return Double.parseDouble(next());
        }

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

    static final int mod = 1000000007;

    public static int gcd(int a, int b)
    {
        if (a == 0)
            return b;
        return gcd(b % a, a);
    }


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        HashMap<Integer,Integer>hm=new HashMap<>();
        for(int j=0;j<n;j++)
            hm.put(j+1,1);
        for(int j=0;j<k;j++)
        {
            int d=sc.nextInt();
            for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            }
        }
        System.out.println(hm.size());


    }
} Main
import java.io.*;

import java.math.BigInteger;
import java.util.*;

import java.util.ArrayList;

import java.util.Scanner;


public class Main {

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

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

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

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

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

        double nextDouble() {
            return Double.parseDouble(next());
        }

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

    static final int mod = 1000000007;

    public static int gcd(int a, int b)
    {
        if (a == 0)
            return b;
        return gcd(b % a, a);
    }


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        HashMap<Integer,Integer>hm=new HashMap<>();
        for(int j=0;j<n;j++)
            hm.put(j+1,1);
        for(int j=0;j<k;j++)
        {
            int d=sc.nextInt();
            for(int l=0;l<d;l++)
            {
                int m=sc.nextInt();
                if(hm.get(m)!=null)
                    hm.remove(m);

            }
        }
        System.out.println(hm.size());


    }
}







