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[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = 0;
        }   

        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            }

        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            if (a[i] == 0) cnt++;
        }
        System.out.println(cnt);   
    }
} 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[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = 0;
        }   

        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            }

        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            if (a[i] == 0) cnt++;
        }
        System.out.println(cnt);   
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();       
        int k = sc.nextInt();   
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = 0;
        }   

        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            }

        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            if (a[i] == 0) cnt++;
        }
        System.out.println(cnt);   
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();       
        int k = sc.nextInt();   
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = 0;
        }   

        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            }

        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            if (a[i] == 0) cnt++;
        }
        System.out.println(cnt);   
    } 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[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) {
            a[i] = 0;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a[i] = 0;
        } {
            a[i] = 0;
        } a[i] = 0 a[i] a i 0 for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            }

        } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
            int d = sc.nextInt();
            int[] A = new int[d];
            for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            }

        } {
            int d = sc.nextInt();
            int[] A = new int[d];
            for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            }

        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc int[] A = new int[d]; A new int[d] d for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            } {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            } A[j] = sc.nextInt() A[j] A j sc.nextInt() sc.nextInt sc A[j]-- A[j] A j a[A[j]]++ a[A[j]] a A[j] A j int cnt = 0; cnt 0 for (int i = 0; i < n; i++) {
            if (a[i] == 0) cnt++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (a[i] == 0) cnt++;
        } {
            if (a[i] == 0) cnt++;
        } if (a[i] == 0) cnt++; a[i] == 0 a[i] a i 0 cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt 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[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = 0;
        }   

        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            }

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

        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            }

        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            if (a[i] == 0) cnt++;
        }
        System.out.println(cnt);   
    }
} 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[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = 0;
        }   

        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for (int j = 0; j < d; j++) {
                A[j] = sc.nextInt();
                A[j]--;
                a[A[j]]++;
            }

        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            if (a[i] == 0) cnt++;
        }
        System.out.println(cnt);   
    }
}