/**
 * 
 */
import java.util.HashSet;
import java.util.Scanner;

/**
 * @author Neeraj
 *
 */
 class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		int d;
		int count=0;
		HashSet hs=new HashSet();
		while(k-->0) {
			
			
			
			d=sc.nextInt();
			for(int i=0;i<d;i++) {
			     	hs.add(sc.nextInt());
			}
			
			
		}
		System.out.println(n-hs.size());
	}

} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util  class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		int d;
		int count=0;
		HashSet hs=new HashSet();
		while(k-->0) {
			
			
			
			d=sc.nextInt();
			for(int i=0;i<d;i++) {
			     	hs.add(sc.nextInt());
			}
			
			
		}
		System.out.println(n-hs.size());
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		int d;
		int count=0;
		HashSet hs=new HashSet();
		while(k-->0) {
			
			
			
			d=sc.nextInt();
			for(int i=0;i<d;i++) {
			     	hs.add(sc.nextInt());
			}
			
			
		}
		System.out.println(n-hs.size());
	} main {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		int d;
		int count=0;
		HashSet hs=new HashSet();
		while(k-->0) {
			
			
			
			d=sc.nextInt();
			for(int i=0;i<d;i++) {
			     	hs.add(sc.nextInt());
			}
			
			
		}
		System.out.println(n-hs.size());
	} 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 d; d int count=0; count 0 HashSet hs=new HashSet(); hs new HashSet() while(k-->0) {
			
			
			
			d=sc.nextInt();
			for(int i=0;i<d;i++) {
			     	hs.add(sc.nextInt());
			}
			
			
		} k-->0 k-- k 0 {
			
			
			
			d=sc.nextInt();
			for(int i=0;i<d;i++) {
			     	hs.add(sc.nextInt());
			}
			
			
		} d=sc.nextInt() d sc.nextInt() sc.nextInt sc for(int i=0;i<d;i++) {
			     	hs.add(sc.nextInt());
			} int i=0; int i=0; i 0 i<d i d i++ i++ i {
			     	hs.add(sc.nextInt());
			} {
			     	hs.add(sc.nextInt());
			} hs.add(sc.nextInt()) hs.add hs sc.nextInt() sc.nextInt sc System.out.println(n-hs.size()) System.out.println System.out System System.out n-hs.size() n hs.size() hs.size hs String[] args args
/**
 * 
 */
import java.util.HashSet;
import java.util.Scanner;

/**
 * @author Neeraj
 *
 */
 class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		int d;
		int count=0;
		HashSet hs=new HashSet();
		while(k-->0) {
			
			
			
			d=sc.nextInt();
			for(int i=0;i<d;i++) {
			     	hs.add(sc.nextInt());
			}
			
			
		}
		System.out.println(n-hs.size());
	}

}
