import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
        final int N = s.nextInt();
        final int K = s.nextInt();
        Set nSet = new HashSet();
        int[] kHoji;

        // 菓子の種類ループ
        for (int i = 0 ; i < K ; i++) {
            // 菓子の個数入力
            int kNum = s.nextInt();
            kHoji = new int[kNum];
            for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            }
            // System.out.println(i);
        }
        System.out.println(N - nSet.size());
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
        final int N = s.nextInt();
        final int K = s.nextInt();
        Set nSet = new HashSet();
        int[] kHoji;

        // 菓子の種類ループ
        for (int i = 0 ; i < K ; i++) {
            // 菓子の個数入力
            int kNum = s.nextInt();
            kHoji = new int[kNum];
            for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            }
            // System.out.println(i);
        }
        System.out.println(N - nSet.size());
  }
} Main public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
        final int N = s.nextInt();
        final int K = s.nextInt();
        Set nSet = new HashSet();
        int[] kHoji;

        // 菓子の種類ループ
        for (int i = 0 ; i < K ; i++) {
            // 菓子の個数入力
            int kNum = s.nextInt();
            kHoji = new int[kNum];
            for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            }
            // System.out.println(i);
        }
        System.out.println(N - nSet.size());
  } main {
    Scanner s = new Scanner(System.in);
        final int N = s.nextInt();
        final int K = s.nextInt();
        Set nSet = new HashSet();
        int[] kHoji;

        // 菓子の種類ループ
        for (int i = 0 ; i < K ; i++) {
            // 菓子の個数入力
            int kNum = s.nextInt();
            kHoji = new int[kNum];
            for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            }
            // System.out.println(i);
        }
        System.out.println(N - nSet.size());
  } Scanner s = new Scanner(System.in); s new Scanner(System.in) final int N = s.nextInt(); N s.nextInt() s.nextInt s final int K = s.nextInt(); K s.nextInt() s.nextInt s Set nSet = new HashSet(); nSet new HashSet() int[] kHoji; kHoji for (int i = 0 ; i < K ; i++) {
            // 菓子の個数入力
            int kNum = s.nextInt();
            kHoji = new int[kNum];
            for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            }
            // System.out.println(i);
        } int i = 0 ; int i = 0 ; i 0 i < K i K i++ i++ i {
            // 菓子の個数入力
            int kNum = s.nextInt();
            kHoji = new int[kNum];
            for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            }
            // System.out.println(i);
        } {
            // 菓子の個数入力
            int kNum = s.nextInt();
            kHoji = new int[kNum];
            for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            }
            // System.out.println(i);
        } int kNum = s.nextInt(); kNum s.nextInt() s.nextInt s kHoji = new int[kNum] kHoji new int[kNum] kNum for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            } int j = 0 ; int j = 0 ; j 0 j < kHoji.length j kHoji.length kHoji kHoji.length j++ j++ j {
                nSet.add(s.nextInt());
            } {
                nSet.add(s.nextInt());
            } nSet.add(s.nextInt()) nSet.add nSet s.nextInt() s.nextInt s System.out.println(N - nSet.size()) System.out.println System.out System System.out N - nSet.size() N nSet.size() nSet.size nSet String[] args args public class Main {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
        final int N = s.nextInt();
        final int K = s.nextInt();
        Set nSet = new HashSet();
        int[] kHoji;

        // 菓子の種類ループ
        for (int i = 0 ; i < K ; i++) {
            // 菓子の個数入力
            int kNum = s.nextInt();
            kHoji = new int[kNum];
            for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            }
            // System.out.println(i);
        }
        System.out.println(N - nSet.size());
  }
} public class Main {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
        final int N = s.nextInt();
        final int K = s.nextInt();
        Set nSet = new HashSet();
        int[] kHoji;

        // 菓子の種類ループ
        for (int i = 0 ; i < K ; i++) {
            // 菓子の個数入力
            int kNum = s.nextInt();
            kHoji = new int[kNum];
            for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            }
            // System.out.println(i);
        }
        System.out.println(N - nSet.size());
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
        final int N = s.nextInt();
        final int K = s.nextInt();
        Set nSet = new HashSet();
        int[] kHoji;

        // 菓子の種類ループ
        for (int i = 0 ; i < K ; i++) {
            // 菓子の個数入力
            int kNum = s.nextInt();
            kHoji = new int[kNum];
            for (int j = 0 ; j < kHoji.length ; j++) {
                nSet.add(s.nextInt());
            }
            // System.out.println(i);
        }
        System.out.println(N - nSet.size());
  }
}