import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < k; i++) {
            int l = sc.nextInt();
            for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            }
        }
        
        int count = 0;
        for (int i = 0; i < n; i++) {
            if (array[i] == 0) count++;
        }
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < k; i++) {
            int l = sc.nextInt();
            for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            }
        }
        
        int count = 0;
        for (int i = 0; i < n; i++) {
            if (array[i] == 0) count++;
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < k; i++) {
            int l = sc.nextInt();
            for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            }
        }
        
        int count = 0;
        for (int i = 0; i < n; i++) {
            if (array[i] == 0) count++;
        }
        System.out.println(count);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < k; i++) {
            int l = sc.nextInt();
            for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            }
        }
        
        int count = 0;
        for (int i = 0; i < n; i++) {
            if (array[i] == 0) count++;
        }
        System.out.println(count);
    } 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[] array = new int[n]; array new int[n] n for (int i = 0; i < k; i++) {
            int l = sc.nextInt();
            for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            }
        } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
            int l = sc.nextInt();
            for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            }
        } {
            int l = sc.nextInt();
            for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            }
        } int l = sc.nextInt(); l sc.nextInt() sc.nextInt sc for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                int num = sc.nextInt()-1;
                array[num]++;
            } {
                int num = sc.nextInt()-1;
                array[num]++;
            } int num = sc.nextInt()-1; num sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 array[num]++ array[num] array num int count = 0; count 0 for (int i = 0; i < n; i++) {
            if (array[i] == 0) count++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (array[i] == 0) count++;
        } {
            if (array[i] == 0) count++;
        } if (array[i] == 0) count++; array[i] == 0 array[i] array i 0 count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < k; i++) {
            int l = sc.nextInt();
            for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            }
        }
        
        int count = 0;
        for (int i = 0; i < n; i++) {
            if (array[i] == 0) count++;
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < k; i++) {
            int l = sc.nextInt();
            for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            }
        }
        
        int count = 0;
        for (int i = 0; i < n; i++) {
            if (array[i] == 0) count++;
        }
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < k; i++) {
            int l = sc.nextInt();
            for (int j = 0; j < l; j++) {
                int num = sc.nextInt()-1;
                array[num]++;
            }
        }
        
        int count = 0;
        for (int i = 0; i < n; i++) {
            if (array[i] == 0) count++;
        }
        System.out.println(count);
    }
}
