import java.util.*;

class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int k = sc.nextInt();
        
        ArrayList<String> param = new ArrayList<String>();
        
        for (int i = 0; i < k; i++) {
            int num = sc.nextInt();
            for (int h = 0; h < num; h++) {
                String input = sc.next();
                param.add(input);
            }
        }
        
        int fc = 0;
        for (int i = 1; i <= n; i++) {
            int count = 0;
            for (int h = 0; h < param.size(); h++) {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            }
            if (count == 0) {
                fc++;
            }
        }
        
        System.out.println(fc);
    }
}
                    
             import java.util.*; util.* java class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int k = sc.nextInt();
        
        ArrayList<String> param = new ArrayList<String>();
        
        for (int i = 0; i < k; i++) {
            int num = sc.nextInt();
            for (int h = 0; h < num; h++) {
                String input = sc.next();
                param.add(input);
            }
        }
        
        int fc = 0;
        for (int i = 1; i <= n; i++) {
            int count = 0;
            for (int h = 0; h < param.size(); h++) {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            }
            if (count == 0) {
                fc++;
            }
        }
        
        System.out.println(fc);
    }
} Main public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int k = sc.nextInt();
        
        ArrayList<String> param = new ArrayList<String>();
        
        for (int i = 0; i < k; i++) {
            int num = sc.nextInt();
            for (int h = 0; h < num; h++) {
                String input = sc.next();
                param.add(input);
            }
        }
        
        int fc = 0;
        for (int i = 1; i <= n; i++) {
            int count = 0;
            for (int h = 0; h < param.size(); h++) {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            }
            if (count == 0) {
                fc++;
            }
        }
        
        System.out.println(fc);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int k = sc.nextInt();
        
        ArrayList<String> param = new ArrayList<String>();
        
        for (int i = 0; i < k; i++) {
            int num = sc.nextInt();
            for (int h = 0; h < num; h++) {
                String input = sc.next();
                param.add(input);
            }
        }
        
        int fc = 0;
        for (int i = 1; i <= n; i++) {
            int count = 0;
            for (int h = 0; h < param.size(); h++) {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            }
            if (count == 0) {
                fc++;
            }
        }
        
        System.out.println(fc);
    } 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 ArrayList<String> param = new ArrayList<String>(); param new ArrayList<String>() for (int i = 0; i < k; i++) {
            int num = sc.nextInt();
            for (int h = 0; h < num; h++) {
                String input = sc.next();
                param.add(input);
            }
        } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
            int num = sc.nextInt();
            for (int h = 0; h < num; h++) {
                String input = sc.next();
                param.add(input);
            }
        } {
            int num = sc.nextInt();
            for (int h = 0; h < num; h++) {
                String input = sc.next();
                param.add(input);
            }
        } int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc for (int h = 0; h < num; h++) {
                String input = sc.next();
                param.add(input);
            } int h = 0; int h = 0; h 0 h < num h num h++ h++ h {
                String input = sc.next();
                param.add(input);
            } {
                String input = sc.next();
                param.add(input);
            } String input = sc.next(); input sc.next() sc.next sc param.add(input) param.add param input int fc = 0; fc 0 for (int i = 1; i <= n; i++) {
            int count = 0;
            for (int h = 0; h < param.size(); h++) {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            }
            if (count == 0) {
                fc++;
            }
        } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
            int count = 0;
            for (int h = 0; h < param.size(); h++) {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            }
            if (count == 0) {
                fc++;
            }
        } {
            int count = 0;
            for (int h = 0; h < param.size(); h++) {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            }
            if (count == 0) {
                fc++;
            }
        } int count = 0; count 0 for (int h = 0; h < param.size(); h++) {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            } int h = 0; int h = 0; h 0 h < param.size() h param.size() param.size param h++ h++ h {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            } {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            } if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                } Integer.parseInt(param.get(h)) == i Integer.parseInt(param.get(h)) Integer.parseInt Integer param.get(h) param.get param h i {
                    count++;
                } count++ count if (count == 0) {
                fc++;
            } count == 0 count 0 {
                fc++;
            } fc++ fc System.out.println(fc) System.out.println System.out System System.out fc String[] args args
import java.util.*;

class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int k = sc.nextInt();
        
        ArrayList<String> param = new ArrayList<String>();
        
        for (int i = 0; i < k; i++) {
            int num = sc.nextInt();
            for (int h = 0; h < num; h++) {
                String input = sc.next();
                param.add(input);
            }
        }
        
        int fc = 0;
        for (int i = 1; i <= n; i++) {
            int count = 0;
            for (int h = 0; h < param.size(); h++) {
                
                if (Integer.parseInt(param.get(h)) == i) {
                    count++;
                }
            }
            if (count == 0) {
                fc++;
            }
        }
        
        System.out.println(fc);
    }
}
                    
            