import java.util.*;

public class Main{
	public static void main(String arga[]){
		
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int c = sc.nextInt();
		
		int[] b = new int[a];
		int[] d = new int[c];
		
		int ans =0;
		
		
		boolean[] z = new boolean[a];
		
		for(int i= 0;i<c;i++){
			d[i] = sc.nextInt();
			
			for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			}
		}
		
		
		 for(int j = 0; j < a; j++) {
        	if(z[j] == false) ans++; 
        }
		System.out.println(ans);
		
	}
}

	
		 import java.util.*; util.* java public class Main{
	public static void main(String arga[]){
		
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int c = sc.nextInt();
		
		int[] b = new int[a];
		int[] d = new int[c];
		
		int ans =0;
		
		
		boolean[] z = new boolean[a];
		
		for(int i= 0;i<c;i++){
			d[i] = sc.nextInt();
			
			for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			}
		}
		
		
		 for(int j = 0; j < a; j++) {
        	if(z[j] == false) ans++; 
        }
		System.out.println(ans);
		
	}
} Main public static void main(String arga[]){
		
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int c = sc.nextInt();
		
		int[] b = new int[a];
		int[] d = new int[c];
		
		int ans =0;
		
		
		boolean[] z = new boolean[a];
		
		for(int i= 0;i<c;i++){
			d[i] = sc.nextInt();
			
			for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			}
		}
		
		
		 for(int j = 0; j < a; j++) {
        	if(z[j] == false) ans++; 
        }
		System.out.println(ans);
		
	} main {
		
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int c = sc.nextInt();
		
		int[] b = new int[a];
		int[] d = new int[c];
		
		int ans =0;
		
		
		boolean[] z = new boolean[a];
		
		for(int i= 0;i<c;i++){
			d[i] = sc.nextInt();
			
			for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			}
		}
		
		
		 for(int j = 0; j < a; j++) {
        	if(z[j] == false) ans++; 
        }
		System.out.println(ans);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int[] b = new int[a]; b new int[a] a int[] d = new int[c]; d new int[c] c int ans =0; ans 0 boolean[] z = new boolean[a]; z new boolean[a] a for(int i= 0;i<c;i++){
			d[i] = sc.nextInt();
			
			for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			}
		} int i= 0; int i= 0; i 0 i<c i c i++ i++ i {
			d[i] = sc.nextInt();
			
			for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			}
		} {
			d[i] = sc.nextInt();
			
			for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			}
		} d[i] = sc.nextInt() d[i] d i sc.nextInt() sc.nextInt sc for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			} int n=0; int n=0; n 0 n<d[i] n d[i] d i n++ n++ n {
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			} {
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			} b[n] = sc.nextInt() b[n] b n sc.nextInt() sc.nextInt sc z[b[n]-1] = true z[b[n]-1] z b[n]-1 b[n] b n 1 true for(int j = 0; j < a; j++) {
        	if(z[j] == false) ans++; 
        } int j = 0; int j = 0; j 0 j < a j a j++ j++ j {
        	if(z[j] == false) ans++; 
        } {
        	if(z[j] == false) ans++; 
        } if(z[j] == false) ans++; z[j] == false z[j] z j false ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String arga[] arga public class Main{
	public static void main(String arga[]){
		
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int c = sc.nextInt();
		
		int[] b = new int[a];
		int[] d = new int[c];
		
		int ans =0;
		
		
		boolean[] z = new boolean[a];
		
		for(int i= 0;i<c;i++){
			d[i] = sc.nextInt();
			
			for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			}
		}
		
		
		 for(int j = 0; j < a; j++) {
        	if(z[j] == false) ans++; 
        }
		System.out.println(ans);
		
	}
} public class Main{
	public static void main(String arga[]){
		
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int c = sc.nextInt();
		
		int[] b = new int[a];
		int[] d = new int[c];
		
		int ans =0;
		
		
		boolean[] z = new boolean[a];
		
		for(int i= 0;i<c;i++){
			d[i] = sc.nextInt();
			
			for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			}
		}
		
		
		 for(int j = 0; j < a; j++) {
        	if(z[j] == false) ans++; 
        }
		System.out.println(ans);
		
	}
} Main
import java.util.*;

public class Main{
	public static void main(String arga[]){
		
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int c = sc.nextInt();
		
		int[] b = new int[a];
		int[] d = new int[c];
		
		int ans =0;
		
		
		boolean[] z = new boolean[a];
		
		for(int i= 0;i<c;i++){
			d[i] = sc.nextInt();
			
			for(int n=0;n<d[i];n++){
				b[n] = sc.nextInt();
				z[b[n]-1] = true;  /*ここを-1にしなければ、z[0]にtrueが入ることがなくなる*/
			}
		}
		
		
		 for(int j = 0; j < a; j++) {
        	if(z[j] == false) ans++; 
        }
		System.out.println(ans);
		
	}
}

	
		