//package com.company;
import java.util.*;
import java.lang.*;
import java.io.*;
//****Use Integer Wrapper Class for Arrays.sort()****
class Main {
    static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));
    public static void main(String[] Args){
        FastReader scan=new FastReader();
        int t=1;
        //t=scan.nextInt();
        while(t-->0){
            int n=scan.nextInt();
            int k=scan.nextInt();
            int[] f=new int[n];
            for(int i=0;i<k;i++){
                int d=scan.nextInt();
                for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                }
            }
            int v=0;
            for(int i=0;i<n;i++){
                if(f[i]==0){
                    v++;
                }
            }
            out.println(v);
        }
        out.flush();
        out.close();
    }
    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;
        }
    }

} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main {
    static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));
    public static void main(String[] Args){
        FastReader scan=new FastReader();
        int t=1;
        //t=scan.nextInt();
        while(t-->0){
            int n=scan.nextInt();
            int k=scan.nextInt();
            int[] f=new int[n];
            for(int i=0;i<k;i++){
                int d=scan.nextInt();
                for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                }
            }
            int v=0;
            for(int i=0;i<n;i++){
                if(f[i]==0){
                    v++;
                }
            }
            out.println(v);
        }
        out.flush();
        out.close();
    }
    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;
        }
    }

} Main static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) public static void main(String[] Args){
        FastReader scan=new FastReader();
        int t=1;
        //t=scan.nextInt();
        while(t-->0){
            int n=scan.nextInt();
            int k=scan.nextInt();
            int[] f=new int[n];
            for(int i=0;i<k;i++){
                int d=scan.nextInt();
                for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                }
            }
            int v=0;
            for(int i=0;i<n;i++){
                if(f[i]==0){
                    v++;
                }
            }
            out.println(v);
        }
        out.flush();
        out.close();
    } main {
        FastReader scan=new FastReader();
        int t=1;
        //t=scan.nextInt();
        while(t-->0){
            int n=scan.nextInt();
            int k=scan.nextInt();
            int[] f=new int[n];
            for(int i=0;i<k;i++){
                int d=scan.nextInt();
                for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                }
            }
            int v=0;
            for(int i=0;i<n;i++){
                if(f[i]==0){
                    v++;
                }
            }
            out.println(v);
        }
        out.flush();
        out.close();
    } FastReader scan=new FastReader(); scan new FastReader() int t=1; t 1 while(t-->0){
            int n=scan.nextInt();
            int k=scan.nextInt();
            int[] f=new int[n];
            for(int i=0;i<k;i++){
                int d=scan.nextInt();
                for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                }
            }
            int v=0;
            for(int i=0;i<n;i++){
                if(f[i]==0){
                    v++;
                }
            }
            out.println(v);
        } t-->0 t-- t 0 {
            int n=scan.nextInt();
            int k=scan.nextInt();
            int[] f=new int[n];
            for(int i=0;i<k;i++){
                int d=scan.nextInt();
                for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                }
            }
            int v=0;
            for(int i=0;i<n;i++){
                if(f[i]==0){
                    v++;
                }
            }
            out.println(v);
        } int n=scan.nextInt(); n scan.nextInt() scan.nextInt scan int k=scan.nextInt(); k scan.nextInt() scan.nextInt scan int[] f=new int[n]; f new int[n] n for(int i=0;i<k;i++){
                int d=scan.nextInt();
                for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                }
            } int i=0; int i=0; i 0 i<k i k i++ i++ i {
                int d=scan.nextInt();
                for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                }
            } {
                int d=scan.nextInt();
                for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                }
            } int d=scan.nextInt(); d scan.nextInt() scan.nextInt scan for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                } int j=0; int j=0; j 0 j<d j d j++ j++ j {
                    int di=scan.nextInt();
                    f[di-1]++;
                } {
                    int di=scan.nextInt();
                    f[di-1]++;
                } int di=scan.nextInt(); di scan.nextInt() scan.nextInt scan f[di-1]++ f[di-1] f di-1 di 1 int v=0; v 0 for(int i=0;i<n;i++){
                if(f[i]==0){
                    v++;
                }
            } int i=0; int i=0; i 0 i<n i n i++ i++ i {
                if(f[i]==0){
                    v++;
                }
            } {
                if(f[i]==0){
                    v++;
                }
            } if(f[i]==0){
                    v++;
                } f[i]==0 f[i] f i 0 {
                    v++;
                } v++ v out.println(v) out.println out v out.flush() out.flush out out.close() out.close out 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
//package com.company;
import java.util.*;
import java.lang.*;
import java.io.*;
//****Use Integer Wrapper Class for Arrays.sort()****
class Main {
    static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));
    public static void main(String[] Args){
        FastReader scan=new FastReader();
        int t=1;
        //t=scan.nextInt();
        while(t-->0){
            int n=scan.nextInt();
            int k=scan.nextInt();
            int[] f=new int[n];
            for(int i=0;i<k;i++){
                int d=scan.nextInt();
                for(int j=0;j<d;j++){
                    int di=scan.nextInt();
                    f[di-1]++;
                }
            }
            int v=0;
            for(int i=0;i<n;i++){
                if(f[i]==0){
                    v++;
                }
            }
            out.println(v);
        }
        out.flush();
        out.close();
    }
    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;
        }
    }

}
