import java.util.*;
 
class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		int N = sc.nextInt();
		int K = sc.nextInt();
        int[] d = new int[K];
        int[] h = new int[N];
        
        for(int i=0; i<K; i++){
          d[i] = sc.nextInt();     //i番目のお菓子を持っている人数
          int[] A = new int[d[i]];
          for(int j=0; j<d[i]; j++){
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          }
        }
      
        int count = 0;
        for(int i=0; i<N; i++){
          if(h[i]==0){
            count++;
          }
        }
        System.out.println(count);
	}
} import java.util.*; util.* java class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		int N = sc.nextInt();
		int K = sc.nextInt();
        int[] d = new int[K];
        int[] h = new int[N];
        
        for(int i=0; i<K; i++){
          d[i] = sc.nextInt();     //i番目のお菓子を持っている人数
          int[] A = new int[d[i]];
          for(int j=0; j<d[i]; j++){
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          }
        }
      
        int count = 0;
        for(int i=0; i<N; i++){
          if(h[i]==0){
            count++;
          }
        }
        System.out.println(count);
	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		
		int N = sc.nextInt();
		int K = sc.nextInt();
        int[] d = new int[K];
        int[] h = new int[N];
        
        for(int i=0; i<K; i++){
          d[i] = sc.nextInt();     //i番目のお菓子を持っている人数
          int[] A = new int[d[i]];
          for(int j=0; j<d[i]; j++){
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          }
        }
      
        int count = 0;
        for(int i=0; i<N; i++){
          if(h[i]==0){
            count++;
          }
        }
        System.out.println(count);
	} main {
		
		int N = sc.nextInt();
		int K = sc.nextInt();
        int[] d = new int[K];
        int[] h = new int[N];
        
        for(int i=0; i<K; i++){
          d[i] = sc.nextInt();     //i番目のお菓子を持っている人数
          int[] A = new int[d[i]];
          for(int j=0; j<d[i]; j++){
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          }
        }
      
        int count = 0;
        for(int i=0; i<N; i++){
          if(h[i]==0){
            count++;
          }
        }
        System.out.println(count);
	} int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc int[] d = new int[K]; d new int[K] K int[] h = new int[N]; h new int[N] N for(int i=0; i<K; i++){
          d[i] = sc.nextInt();     //i番目のお菓子を持っている人数
          int[] A = new int[d[i]];
          for(int j=0; j<d[i]; j++){
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          }
        } int i=0; int i=0; i 0 i<K i K i++ i++ i {
          d[i] = sc.nextInt();     //i番目のお菓子を持っている人数
          int[] A = new int[d[i]];
          for(int j=0; j<d[i]; j++){
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          }
        } {
          d[i] = sc.nextInt();     //i番目のお菓子を持っている人数
          int[] A = new int[d[i]];
          for(int j=0; j<d[i]; j++){
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          }
        } d[i] = sc.nextInt() d[i] d i sc.nextInt() sc.nextInt sc int[] A = new int[d[i]]; A new int[d[i]] d[i] d i for(int j=0; j<d[i]; j++){
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          } int j=0; int j=0; j 0 j<d[i] j d[i] d i j++ j++ j {
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          } {
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          } A[j] = sc.nextInt() A[j] A j sc.nextInt() sc.nextInt sc h[A[j]-1]++ h[A[j]-1] h A[j]-1 A[j] A j 1 int count = 0; count 0 for(int i=0; i<N; i++){
          if(h[i]==0){
            count++;
          }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
          if(h[i]==0){
            count++;
          }
        } {
          if(h[i]==0){
            count++;
          }
        } if(h[i]==0){
            count++;
          } h[i]==0 h[i] h i 0 {
            count++;
          } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.*;
 
class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		int N = sc.nextInt();
		int K = sc.nextInt();
        int[] d = new int[K];
        int[] h = new int[N];
        
        for(int i=0; i<K; i++){
          d[i] = sc.nextInt();     //i番目のお菓子を持っている人数
          int[] A = new int[d[i]];
          for(int j=0; j<d[i]; j++){
            A[j] = sc.nextInt();
            h[A[j]-1]++;
          }
        }
      
        int count = 0;
        for(int i=0; i<N; i++){
          if(h[i]==0){
            count++;
          }
        }
        System.out.println(count);
	}
}