import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] b = new int[n];
    for(int i=0;i<k;i++) {
      int d = sc.nextInt();
      int[] a = new int[d];
      for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      }      
    }
    int count = 0;
    for(int x=0;x<b.length;x++) {
      if(b[x]==0) {
      count = count + 1;
      }
    }
    System.out.println(count);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] b = new int[n];
    for(int i=0;i<k;i++) {
      int d = sc.nextInt();
      int[] a = new int[d];
      for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      }      
    }
    int count = 0;
    for(int x=0;x<b.length;x++) {
      if(b[x]==0) {
      count = count + 1;
      }
    }
    System.out.println(count);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] b = new int[n];
    for(int i=0;i<k;i++) {
      int d = sc.nextInt();
      int[] a = new int[d];
      for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      }      
    }
    int count = 0;
    for(int x=0;x<b.length;x++) {
      if(b[x]==0) {
      count = count + 1;
      }
    }
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] b = new int[n];
    for(int i=0;i<k;i++) {
      int d = sc.nextInt();
      int[] a = new int[d];
      for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      }      
    }
    int count = 0;
    for(int x=0;x<b.length;x++) {
      if(b[x]==0) {
      count = count + 1;
      }
    }
    System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc int[] b = new int[n]; b new int[n] n for(int i=0;i<k;i++) {
      int d = sc.nextInt();
      int[] a = new int[d];
      for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      }      
    } int i=0; int i=0; i 0 i<k i k i++ i++ i {
      int d = sc.nextInt();
      int[] a = new int[d];
      for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      }      
    } {
      int d = sc.nextInt();
      int[] a = new int[d];
      for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      }      
    } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc int[] a = new int[d]; a new int[d] d for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      } int j=0; int j=0; j 0 j<d j d j++ j++ j {
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      } {
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      } a[j]  = sc.nextInt() a[j] a j sc.nextInt() sc.nextInt sc int c = a[j]; c a[j] a j b[c-1] = 1 b[c-1] b c-1 c 1 1 int count = 0; count 0 for(int x=0;x<b.length;x++) {
      if(b[x]==0) {
      count = count + 1;
      }
    } int x=0; int x=0; x 0 x<b.length x b.length b b.length x++ x++ x {
      if(b[x]==0) {
      count = count + 1;
      }
    } {
      if(b[x]==0) {
      count = count + 1;
      }
    } if(b[x]==0) {
      count = count + 1;
      } b[x]==0 b[x] b x 0 {
      count = count + 1;
      } count = count + 1 count count + 1 count 1 System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] b = new int[n];
    for(int i=0;i<k;i++) {
      int d = sc.nextInt();
      int[] a = new int[d];
      for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      }      
    }
    int count = 0;
    for(int x=0;x<b.length;x++) {
      if(b[x]==0) {
      count = count + 1;
      }
    }
    System.out.println(count);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] b = new int[n];
    for(int i=0;i<k;i++) {
      int d = sc.nextInt();
      int[] a = new int[d];
      for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      }      
    }
    int count = 0;
    for(int x=0;x<b.length;x++) {
      if(b[x]==0) {
      count = count + 1;
      }
    }
    System.out.println(count);
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] b = new int[n];
    for(int i=0;i<k;i++) {
      int d = sc.nextInt();
      int[] a = new int[d];
      for(int j=0;j<d;j++){
        a[j]  = sc.nextInt();
        int c = a[j];
		b[c-1] = 1;
      }      
    }
    int count = 0;
    for(int x=0;x<b.length;x++) {
      if(b[x]==0) {
      count = count + 1;
      }
    }
    System.out.println(count);
  }
}
