import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] x = new int[n];
        for(int i = 0; i < k; i++){
            int d = scan.nextInt();
            for(int j = 0; j < d; j++){
                x[scan.nextInt() - 1]++;
            }
        }
        int out = 0;
        for(int i = 0; i < n; i++){
            if(x[i] == 0){
                out++;
            }
        }
        System.out.println(out);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] x = new int[n];
        for(int i = 0; i < k; i++){
            int d = scan.nextInt();
            for(int j = 0; j < d; j++){
                x[scan.nextInt() - 1]++;
            }
        }
        int out = 0;
        for(int i = 0; i < n; i++){
            if(x[i] == 0){
                out++;
            }
        }
        System.out.println(out);
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] x = new int[n];
        for(int i = 0; i < k; i++){
            int d = scan.nextInt();
            for(int j = 0; j < d; j++){
                x[scan.nextInt() - 1]++;
            }
        }
        int out = 0;
        for(int i = 0; i < n; i++){
            if(x[i] == 0){
                out++;
            }
        }
        System.out.println(out);
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] x = new int[n];
        for(int i = 0; i < k; i++){
            int d = scan.nextInt();
            for(int j = 0; j < d; j++){
                x[scan.nextInt() - 1]++;
            }
        }
        int out = 0;
        for(int i = 0; i < n; i++){
            if(x[i] == 0){
                out++;
            }
        }
        System.out.println(out);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan int[] x = new int[n]; x new int[n] n for(int i = 0; i < k; i++){
            int d = scan.nextInt();
            for(int j = 0; j < d; j++){
                x[scan.nextInt() - 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++){
                x[scan.nextInt() - 1]++;
            }
        } {
            int d = scan.nextInt();
            for(int j = 0; j < d; j++){
                x[scan.nextInt() - 1]++;
            }
        } int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for(int j = 0; j < d; j++){
                x[scan.nextInt() - 1]++;
            } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
                x[scan.nextInt() - 1]++;
            } {
                x[scan.nextInt() - 1]++;
            } x[scan.nextInt() - 1]++ x[scan.nextInt() - 1] x scan.nextInt() - 1 scan.nextInt() scan.nextInt scan 1 int out = 0; out 0 for(int i = 0; i < n; i++){
            if(x[i] == 0){
                out++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if(x[i] == 0){
                out++;
            }
        } {
            if(x[i] == 0){
                out++;
            }
        } if(x[i] == 0){
                out++;
            } x[i] == 0 x[i] x i 0 {
                out++;
            } out++ out System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] x = new int[n];
        for(int i = 0; i < k; i++){
            int d = scan.nextInt();
            for(int j = 0; j < d; j++){
                x[scan.nextInt() - 1]++;
            }
        }
        int out = 0;
        for(int i = 0; i < n; i++){
            if(x[i] == 0){
                out++;
            }
        }
        System.out.println(out);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] x = new int[n];
        for(int i = 0; i < k; i++){
            int d = scan.nextInt();
            for(int j = 0; j < d; j++){
                x[scan.nextInt() - 1]++;
            }
        }
        int out = 0;
        for(int i = 0; i < n; i++){
            if(x[i] == 0){
                out++;
            }
        }
        System.out.println(out);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] x = new int[n];
        for(int i = 0; i < k; i++){
            int d = scan.nextInt();
            for(int j = 0; j < d; j++){
                x[scan.nextInt() - 1]++;
            }
        }
        int out = 0;
        for(int i = 0; i < n; i++){
            if(x[i] == 0){
                out++;
            }
        }
        System.out.println(out);
    }
}