import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int N = sc.nextInt();
    final int K = sc.nextInt();
    int S[] = new int[N];
    for(int i=0;i<K;i++) {
    	int d = sc.nextInt();
    	for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	}
    }
    sc.close();
    int ans = 0;
    for(int a : S) {
    	if(a==0) {
    		ans++;
    	}
    }
    System.out.println(ans);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int N = sc.nextInt();
    final int K = sc.nextInt();
    int S[] = new int[N];
    for(int i=0;i<K;i++) {
    	int d = sc.nextInt();
    	for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	}
    }
    sc.close();
    int ans = 0;
    for(int a : S) {
    	if(a==0) {
    		ans++;
    	}
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int N = sc.nextInt();
    final int K = sc.nextInt();
    int S[] = new int[N];
    for(int i=0;i<K;i++) {
    	int d = sc.nextInt();
    	for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	}
    }
    sc.close();
    int ans = 0;
    for(int a : S) {
    	if(a==0) {
    		ans++;
    	}
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    final int N = sc.nextInt();
    final int K = sc.nextInt();
    int S[] = new int[N];
    for(int i=0;i<K;i++) {
    	int d = sc.nextInt();
    	for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	}
    }
    sc.close();
    int ans = 0;
    for(int a : S) {
    	if(a==0) {
    		ans++;
    	}
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc final int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc int S[] = new int[N]; S new int[N] N for(int i=0;i<K;i++) {
    	int d = sc.nextInt();
    	for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	}
    } int i=0; int i=0; i 0 i<K i K i++ i++ i {
    	int d = sc.nextInt();
    	for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	}
    } {
    	int d = sc.nextInt();
    	for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	}
    } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	} int j=0; int j=0; j 0 j<d j d j++ j++ j {
    		int a = sc.nextInt();
    		S[a-1]++;
    	} {
    		int a = sc.nextInt();
    		S[a-1]++;
    	} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc S[a-1]++ S[a-1] S a-1 a 1 sc.close() sc.close sc int ans = 0; ans 0 for(int a : S) {
    	if(a==0) {
    		ans++;
    	}
    } int a S {
    	if(a==0) {
    		ans++;
    	}
    } {
    	if(a==0) {
    		ans++;
    	}
    } if(a==0) {
    		ans++;
    	} a==0 a 0 {
    		ans++;
    	} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int N = sc.nextInt();
    final int K = sc.nextInt();
    int S[] = new int[N];
    for(int i=0;i<K;i++) {
    	int d = sc.nextInt();
    	for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	}
    }
    sc.close();
    int ans = 0;
    for(int a : S) {
    	if(a==0) {
    		ans++;
    	}
    }
    System.out.println(ans);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int N = sc.nextInt();
    final int K = sc.nextInt();
    int S[] = new int[N];
    for(int i=0;i<K;i++) {
    	int d = sc.nextInt();
    	for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	}
    }
    sc.close();
    int ans = 0;
    for(int a : S) {
    	if(a==0) {
    		ans++;
    	}
    }
    System.out.println(ans);
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int N = sc.nextInt();
    final int K = sc.nextInt();
    int S[] = new int[N];
    for(int i=0;i<K;i++) {
    	int d = sc.nextInt();
    	for(int j=0;j<d;j++) {
    		int a = sc.nextInt();
    		S[a-1]++;
    	}
    }
    sc.close();
    int ans = 0;
    for(int a : S) {
    	if(a==0) {
    		ans++;
    	}
    }
    System.out.println(ans);
  }
}