import java.util.*;
import java.io.*;

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

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