import java.util.Map;
import java.util.Scanner;
import java.util.Set;
import java.util.HashSet;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner (System.in);
        int n = sc.nextInt(), k = sc.nextInt();
        Set <Integer> st = new HashSet <Integer> ();
        for(int i = 1; i <= k; ++i){ 
            int d = sc.nextInt();
            for(int j = 1; j <= d; ++j){
                int x = sc.nextInt();
                st.add(x);
            }
        }
        System.out.println(n - st.size());
    }    
} import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util import java.util.HashSet; HashSet java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner (System.in);
        int n = sc.nextInt(), k = sc.nextInt();
        Set <Integer> st = new HashSet <Integer> ();
        for(int i = 1; i <= k; ++i){ 
            int d = sc.nextInt();
            for(int j = 1; j <= d; ++j){
                int x = sc.nextInt();
                st.add(x);
            }
        }
        System.out.println(n - st.size());
    }    
} Main public static void main(String[] args) {
        Scanner sc = new Scanner (System.in);
        int n = sc.nextInt(), k = sc.nextInt();
        Set <Integer> st = new HashSet <Integer> ();
        for(int i = 1; i <= k; ++i){ 
            int d = sc.nextInt();
            for(int j = 1; j <= d; ++j){
                int x = sc.nextInt();
                st.add(x);
            }
        }
        System.out.println(n - st.size());
    } main {
        Scanner sc = new Scanner (System.in);
        int n = sc.nextInt(), k = sc.nextInt();
        Set <Integer> st = new HashSet <Integer> ();
        for(int i = 1; i <= k; ++i){ 
            int d = sc.nextInt();
            for(int j = 1; j <= d; ++j){
                int x = sc.nextInt();
                st.add(x);
            }
        }
        System.out.println(n - st.size());
    } Scanner sc = new Scanner (System.in); sc new Scanner (System.in) int n = sc.nextInt() n sc.nextInt() sc.nextInt sc k = sc.nextInt(); k sc.nextInt() sc.nextInt sc Set <Integer> st = new HashSet <Integer> (); st new HashSet <Integer> () for(int i = 1; i <= k; ++i){ 
            int d = sc.nextInt();
            for(int j = 1; j <= d; ++j){
                int x = sc.nextInt();
                st.add(x);
            }
        } int i = 1; int i = 1; i 1 i <= k i k ++i ++i i { 
            int d = sc.nextInt();
            for(int j = 1; j <= d; ++j){
                int x = sc.nextInt();
                st.add(x);
            }
        } { 
            int d = sc.nextInt();
            for(int j = 1; j <= d; ++j){
                int x = sc.nextInt();
                st.add(x);
            }
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j = 1; j <= d; ++j){
                int x = sc.nextInt();
                st.add(x);
            } int j = 1; int j = 1; j 1 j <= d j d ++j ++j j {
                int x = sc.nextInt();
                st.add(x);
            } {
                int x = sc.nextInt();
                st.add(x);
            } int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc st.add(x) st.add st x System.out.println(n - st.size()) System.out.println System.out System System.out n - st.size() n st.size() st.size st String[] args args
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
import java.util.HashSet;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner (System.in);
        int n = sc.nextInt(), k = sc.nextInt();
        Set <Integer> st = new HashSet <Integer> ();
        for(int i = 1; i <= k; ++i){ 
            int d = sc.nextInt();
            for(int j = 1; j <= d; ++j){
                int x = sc.nextInt();
                st.add(x);
            }
        }
        System.out.println(n - st.size());
    }    
}