import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;

public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());
        int K = Integer.parseInt(st.nextToken());

        Set<Integer> notTargetSet = new HashSet<>();

        int result = 0;
        
        for(int i = 0; i < K; i++) {
            String d = br.readLine();
            String[] d_array = br.readLine().split(" ");

            for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            }
        }

        for(int j = 1; j <= N; j++) {
            if(!notTargetSet.contains(j)) result++;
        }

        pw.print(result);
        br.close();
        pw.close();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.PrintWriter; PrintWriter java.io import java.util.HashSet; HashSet java.util import java.util.Set; Set java.util import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());
        int K = Integer.parseInt(st.nextToken());

        Set<Integer> notTargetSet = new HashSet<>();

        int result = 0;
        
        for(int i = 0; i < K; i++) {
            String d = br.readLine();
            String[] d_array = br.readLine().split(" ");

            for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            }
        }

        for(int j = 1; j <= N; j++) {
            if(!notTargetSet.contains(j)) result++;
        }

        pw.print(result);
        br.close();
        pw.close();
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());
        int K = Integer.parseInt(st.nextToken());

        Set<Integer> notTargetSet = new HashSet<>();

        int result = 0;
        
        for(int i = 0; i < K; i++) {
            String d = br.readLine();
            String[] d_array = br.readLine().split(" ");

            for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            }
        }

        for(int j = 1; j <= N; j++) {
            if(!notTargetSet.contains(j)) result++;
        }

        pw.print(result);
        br.close();
        pw.close();
    } main {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());
        int K = Integer.parseInt(st.nextToken());

        Set<Integer> notTargetSet = new HashSet<>();

        int result = 0;
        
        for(int i = 0; i < K; i++) {
            String d = br.readLine();
            String[] d_array = br.readLine().split(" ");

            for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            }
        }

        for(int j = 1; j <= N; j++) {
            if(!notTargetSet.contains(j)) result++;
        }

        pw.print(result);
        br.close();
        pw.close();
    } BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in)); br new BufferedReader(new java.io.InputStreamReader(System.in)) PrintWriter pw = new PrintWriter(System.out); pw new PrintWriter(System.out) StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) int N = Integer.parseInt(st.nextToken()); N Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int K = Integer.parseInt(st.nextToken()); K Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st Set<Integer> notTargetSet = new HashSet<>(); notTargetSet new HashSet<>() int result = 0; result 0 for(int i = 0; i < K; i++) {
            String d = br.readLine();
            String[] d_array = br.readLine().split(" ");

            for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            }
        } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
            String d = br.readLine();
            String[] d_array = br.readLine().split(" ");

            for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            }
        } {
            String d = br.readLine();
            String[] d_array = br.readLine().split(" ");

            for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            }
        } String d = br.readLine(); d br.readLine() br.readLine br String[] d_array = br.readLine().split(" "); d_array br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            } String str d_array {
                notTargetSet.add(Integer.parseInt(str));
            } {
                notTargetSet.add(Integer.parseInt(str));
            } notTargetSet.add(Integer.parseInt(str)) notTargetSet.add notTargetSet Integer.parseInt(str) Integer.parseInt Integer str for(int j = 1; j <= N; j++) {
            if(!notTargetSet.contains(j)) result++;
        } int j = 1; int j = 1; j 1 j <= N j N j++ j++ j {
            if(!notTargetSet.contains(j)) result++;
        } {
            if(!notTargetSet.contains(j)) result++;
        } if(!notTargetSet.contains(j)) result++; !notTargetSet.contains(j) notTargetSet.contains(j) notTargetSet.contains notTargetSet j result++ result pw.print(result) pw.print pw result br.close() br.close br pw.close() pw.close pw String[] args args public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());
        int K = Integer.parseInt(st.nextToken());

        Set<Integer> notTargetSet = new HashSet<>();

        int result = 0;
        
        for(int i = 0; i < K; i++) {
            String d = br.readLine();
            String[] d_array = br.readLine().split(" ");

            for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            }
        }

        for(int j = 1; j <= N; j++) {
            if(!notTargetSet.contains(j)) result++;
        }

        pw.print(result);
        br.close();
        pw.close();
    }
} public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());
        int K = Integer.parseInt(st.nextToken());

        Set<Integer> notTargetSet = new HashSet<>();

        int result = 0;
        
        for(int i = 0; i < K; i++) {
            String d = br.readLine();
            String[] d_array = br.readLine().split(" ");

            for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            }
        }

        for(int j = 1; j <= N; j++) {
            if(!notTargetSet.contains(j)) result++;
        }

        pw.print(result);
        br.close();
        pw.close();
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;

public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());
        int K = Integer.parseInt(st.nextToken());

        Set<Integer> notTargetSet = new HashSet<>();

        int result = 0;
        
        for(int i = 0; i < K; i++) {
            String d = br.readLine();
            String[] d_array = br.readLine().split(" ");

            for(String str : d_array) {
                notTargetSet.add(Integer.parseInt(str));
            }
        }

        for(int j = 1; j <= N; j++) {
            if(!notTargetSet.contains(j)) result++;
        }

        pw.print(result);
        br.close();
        pw.close();
    }
}