import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] count = new int[num];

    int kind = sc.nextInt();
    for (int i = 0 ;kind > i ;i ++) {
      int haveCount = sc.nextInt();
      for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      }
    }

    int resultCount = 0;
    for (int i = 0; i < num ;i++) {
      if (count[i] == 0) resultCount++;
    }
    
    System.out.println(resultCount);    

  }

} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] count = new int[num];

    int kind = sc.nextInt();
    for (int i = 0 ;kind > i ;i ++) {
      int haveCount = sc.nextInt();
      for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      }
    }

    int resultCount = 0;
    for (int i = 0; i < num ;i++) {
      if (count[i] == 0) resultCount++;
    }
    
    System.out.println(resultCount);    

  }

} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] count = new int[num];

    int kind = sc.nextInt();
    for (int i = 0 ;kind > i ;i ++) {
      int haveCount = sc.nextInt();
      for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      }
    }

    int resultCount = 0;
    for (int i = 0; i < num ;i++) {
      if (count[i] == 0) resultCount++;
    }
    
    System.out.println(resultCount);    

  } main {
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] count = new int[num];

    int kind = sc.nextInt();
    for (int i = 0 ;kind > i ;i ++) {
      int haveCount = sc.nextInt();
      for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      }
    }

    int resultCount = 0;
    for (int i = 0; i < num ;i++) {
      if (count[i] == 0) resultCount++;
    }
    
    System.out.println(resultCount);    

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int[] count = new int[num]; count new int[num] num int kind = sc.nextInt(); kind sc.nextInt() sc.nextInt sc for (int i = 0 ;kind > i ;i ++) {
      int haveCount = sc.nextInt();
      for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      }
    } int i = 0 ; int i = 0 ; i 0 kind > i kind i i ++ i ++ i {
      int haveCount = sc.nextInt();
      for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      }
    } {
      int haveCount = sc.nextInt();
      for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      }
    } int haveCount = sc.nextInt(); haveCount sc.nextInt() sc.nextInt sc for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      } int j = 0 ; int j = 0 ; j 0 haveCount > j haveCount j j ++ j ++ j {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      } {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      } int haveIndex = sc.nextInt(); haveIndex sc.nextInt() sc.nextInt sc count[haveIndex -1 ]++ count[haveIndex -1 ] count haveIndex -1 haveIndex 1 int resultCount = 0; resultCount 0 for (int i = 0; i < num ;i++) {
      if (count[i] == 0) resultCount++;
    } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
      if (count[i] == 0) resultCount++;
    } {
      if (count[i] == 0) resultCount++;
    } if (count[i] == 0) resultCount++; count[i] == 0 count[i] count i 0 resultCount++ resultCount System.out.println(resultCount) System.out.println System.out System System.out resultCount String[] args args public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] count = new int[num];

    int kind = sc.nextInt();
    for (int i = 0 ;kind > i ;i ++) {
      int haveCount = sc.nextInt();
      for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      }
    }

    int resultCount = 0;
    for (int i = 0; i < num ;i++) {
      if (count[i] == 0) resultCount++;
    }
    
    System.out.println(resultCount);    

  }

} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] count = new int[num];

    int kind = sc.nextInt();
    for (int i = 0 ;kind > i ;i ++) {
      int haveCount = sc.nextInt();
      for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      }
    }

    int resultCount = 0;
    for (int i = 0; i < num ;i++) {
      if (count[i] == 0) resultCount++;
    }
    
    System.out.println(resultCount);    

  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] count = new int[num];

    int kind = sc.nextInt();
    for (int i = 0 ;kind > i ;i ++) {
      int haveCount = sc.nextInt();
      for (int j = 0 ;haveCount > j ;j ++) {
        int haveIndex = sc.nextInt();
        count[haveIndex -1 ]++;
      }
    }

    int resultCount = 0;
    for (int i = 0; i < num ;i++) {
      if (count[i] == 0) resultCount++;
    }
    
    System.out.println(resultCount);    

  }

}
