import java.io.BufferedInputStream;
import java.io.IOException;
import java.util.HashSet;
import java.util.Scanner;

/**
 * Created by Harry on 5/3/20.
 */
public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(new BufferedInputStream(System.in));
        int n = scanner.nextInt();
        int k = scanner.nextInt();
        HashSet set = new HashSet();
        for(int s=0; s<k; s++){
            int d = scanner.nextInt();
            for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            }
        }
        System.out.println(n-set.size());
    }

} import java.io.BufferedInputStream; BufferedInputStream java.io import java.io.IOException; IOException java.io import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(new BufferedInputStream(System.in));
        int n = scanner.nextInt();
        int k = scanner.nextInt();
        HashSet set = new HashSet();
        for(int s=0; s<k; s++){
            int d = scanner.nextInt();
            for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            }
        }
        System.out.println(n-set.size());
    }

} Main public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(new BufferedInputStream(System.in));
        int n = scanner.nextInt();
        int k = scanner.nextInt();
        HashSet set = new HashSet();
        for(int s=0; s<k; s++){
            int d = scanner.nextInt();
            for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            }
        }
        System.out.println(n-set.size());
    } main {
        Scanner scanner = new Scanner(new BufferedInputStream(System.in));
        int n = scanner.nextInt();
        int k = scanner.nextInt();
        HashSet set = new HashSet();
        for(int s=0; s<k; s++){
            int d = scanner.nextInt();
            for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            }
        }
        System.out.println(n-set.size());
    } Scanner scanner = new Scanner(new BufferedInputStream(System.in)); scanner new Scanner(new BufferedInputStream(System.in)) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int k = scanner.nextInt(); k scanner.nextInt() scanner.nextInt scanner HashSet set = new HashSet(); set new HashSet() for(int s=0; s<k; s++){
            int d = scanner.nextInt();
            for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            }
        } int s=0; int s=0; s 0 s<k s k s++ s++ s {
            int d = scanner.nextInt();
            for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            }
        } {
            int d = scanner.nextInt();
            for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            }
        } int d = scanner.nextInt(); d scanner.nextInt() scanner.nextInt scanner for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            } int i=0; int i=0; i 0 i<d i d i++ i++ i {
                set.add(scanner.nextInt());
            } {
                set.add(scanner.nextInt());
            } set.add(scanner.nextInt()) set.add set scanner.nextInt() scanner.nextInt scanner System.out.println(n-set.size()) System.out.println System.out System System.out n-set.size() n set.size() set.size set String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(new BufferedInputStream(System.in));
        int n = scanner.nextInt();
        int k = scanner.nextInt();
        HashSet set = new HashSet();
        for(int s=0; s<k; s++){
            int d = scanner.nextInt();
            for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            }
        }
        System.out.println(n-set.size());
    }

} public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(new BufferedInputStream(System.in));
        int n = scanner.nextInt();
        int k = scanner.nextInt();
        HashSet set = new HashSet();
        for(int s=0; s<k; s++){
            int d = scanner.nextInt();
            for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            }
        }
        System.out.println(n-set.size());
    }

} Main
import java.io.BufferedInputStream;
import java.io.IOException;
import java.util.HashSet;
import java.util.Scanner;

/**
 * Created by Harry on 5/3/20.
 */
public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(new BufferedInputStream(System.in));
        int n = scanner.nextInt();
        int k = scanner.nextInt();
        HashSet set = new HashSet();
        for(int s=0; s<k; s++){
            int d = scanner.nextInt();
            for(int i=0; i<d; i++){
                set.add(scanner.nextInt());
            }
        }
        System.out.println(n-set.size());
    }

}
