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[] have = new int[n];
      	int a, d;
      	for(int i = 0; i < k; i++){
        	d = sc.nextInt();
          	for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            }
        }
      	int count = 0;
      	for(int i = 0; i < n; i++){
        	if(have[i] == 0) count++;
        }
      	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[] have = new int[n];
      	int a, d;
      	for(int i = 0; i < k; i++){
        	d = sc.nextInt();
          	for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            }
        }
      	int count = 0;
      	for(int i = 0; i < n; i++){
        	if(have[i] == 0) count++;
        }
      	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[] have = new int[n];
      	int a, d;
      	for(int i = 0; i < k; i++){
        	d = sc.nextInt();
          	for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            }
        }
      	int count = 0;
      	for(int i = 0; i < n; i++){
        	if(have[i] == 0) count++;
        }
      	System.out.println(count++);
    } main {
    	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int k = sc.nextInt();
      	int[] have = new int[n];
      	int a, d;
      	for(int i = 0; i < k; i++){
        	d = sc.nextInt();
          	for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            }
        }
      	int count = 0;
      	for(int i = 0; i < n; i++){
        	if(have[i] == 0) count++;
        }
      	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[] have = new int[n]; have new int[n] n int a a d; d for(int i = 0; i < k; i++){
        	d = sc.nextInt();
          	for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            }
        } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
        	d = sc.nextInt();
          	for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            }
        } {
        	d = sc.nextInt();
          	for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            }
        } d = sc.nextInt() d sc.nextInt() sc.nextInt sc for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
            	a = sc.nextInt();
              	have[a-1]++;
            } {
            	a = sc.nextInt();
              	have[a-1]++;
            } a = sc.nextInt() a sc.nextInt() sc.nextInt sc have[a-1]++ have[a-1] have a-1 a 1 int count = 0; count 0 for(int i = 0; i < n; i++){
        	if(have[i] == 0) count++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	if(have[i] == 0) count++;
        } {
        	if(have[i] == 0) count++;
        } if(have[i] == 0) count++; have[i] == 0 have[i] have i 0 count++ count System.out.println(count++) System.out.println System.out System System.out count++ 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[] have = new int[n];
      	int a, d;
      	for(int i = 0; i < k; i++){
        	d = sc.nextInt();
          	for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            }
        }
      	int count = 0;
      	for(int i = 0; i < n; i++){
        	if(have[i] == 0) count++;
        }
      	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[] have = new int[n];
      	int a, d;
      	for(int i = 0; i < k; i++){
        	d = sc.nextInt();
          	for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            }
        }
      	int count = 0;
      	for(int i = 0; i < n; i++){
        	if(have[i] == 0) count++;
        }
      	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[] have = new int[n];
      	int a, d;
      	for(int i = 0; i < k; i++){
        	d = sc.nextInt();
          	for(int j = 0; j < d; j++){
            	a = sc.nextInt();
              	have[a-1]++;
            }
        }
      	int count = 0;
      	for(int i = 0; i < n; i++){
        	if(have[i] == 0) count++;
        }
      	System.out.println(count++);
    }
}