import java.util.*;
class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] ary = new int[n+1];
        int ans = 0;
        for (int i = 1; i < k+1 ; i++){
            for(int d = scan.nextInt(); d>0 ; d--){
                ary[scan.nextInt()] ++;
            }
        }
        for (int i = 1; i<=n ; i++){
            if (ary[i]==0){
                ans ++;
            }
        }
        System.out.println(ans);
            }
        } import java.util.*; util.* java class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] ary = new int[n+1];
        int ans = 0;
        for (int i = 1; i < k+1 ; i++){
            for(int d = scan.nextInt(); d>0 ; d--){
                ary[scan.nextInt()] ++;
            }
        }
        for (int i = 1; i<=n ; i++){
            if (ary[i]==0){
                ans ++;
            }
        }
        System.out.println(ans);
            }
        } Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] ary = new int[n+1];
        int ans = 0;
        for (int i = 1; i < k+1 ; i++){
            for(int d = scan.nextInt(); d>0 ; d--){
                ary[scan.nextInt()] ++;
            }
        }
        for (int i = 1; i<=n ; i++){
            if (ary[i]==0){
                ans ++;
            }
        }
        System.out.println(ans);
            } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] ary = new int[n+1];
        int ans = 0;
        for (int i = 1; i < k+1 ; i++){
            for(int d = scan.nextInt(); d>0 ; d--){
                ary[scan.nextInt()] ++;
            }
        }
        for (int i = 1; i<=n ; i++){
            if (ary[i]==0){
                ans ++;
            }
        }
        System.out.println(ans);
            } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan int[] ary = new int[n+1]; ary new int[n+1] n+1 n 1 int ans = 0; ans 0 for (int i = 1; i < k+1 ; i++){
            for(int d = scan.nextInt(); d>0 ; d--){
                ary[scan.nextInt()] ++;
            }
        } int i = 1; int i = 1; i 1 i < k+1 i k+1 k 1 i++ i++ i {
            for(int d = scan.nextInt(); d>0 ; d--){
                ary[scan.nextInt()] ++;
            }
        } {
            for(int d = scan.nextInt(); d>0 ; d--){
                ary[scan.nextInt()] ++;
            }
        } for(int d = scan.nextInt(); d>0 ; d--){
                ary[scan.nextInt()] ++;
            } int d = scan.nextInt(); int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan d>0 d 0 d-- d-- d {
                ary[scan.nextInt()] ++;
            } {
                ary[scan.nextInt()] ++;
            } ary[scan.nextInt()] ++ ary[scan.nextInt()] ary scan.nextInt() scan.nextInt scan for (int i = 1; i<=n ; i++){
            if (ary[i]==0){
                ans ++;
            }
        } int i = 1; int i = 1; i 1 i<=n i n i++ i++ i {
            if (ary[i]==0){
                ans ++;
            }
        } {
            if (ary[i]==0){
                ans ++;
            }
        } if (ary[i]==0){
                ans ++;
            } ary[i]==0 ary[i] ary i 0 {
                ans ++;
            } ans ++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int[] ary = new int[n+1];
        int ans = 0;
        for (int i = 1; i < k+1 ; i++){
            for(int d = scan.nextInt(); d>0 ; d--){
                ary[scan.nextInt()] ++;
            }
        }
        for (int i = 1; i<=n ; i++){
            if (ary[i]==0){
                ans ++;
            }
        }
        System.out.println(ans);
            }
        }