import java.util.ArrayList;
import java.util.Scanner;

public class Main{
  public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int human = sc.nextInt();
		int okashi = sc.nextInt();
		int cnt = 0;

		ArrayList<Integer> list = new ArrayList<>();

		for(int i = 1; i <= human; i++){
			list.add(i);
		}

		for(int i = 0; i < okashi; i++){
			cnt = sc.nextInt();
			for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			}
		}

		System.out.println(list.size());

		sc.close();
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int human = sc.nextInt();
		int okashi = sc.nextInt();
		int cnt = 0;

		ArrayList<Integer> list = new ArrayList<>();

		for(int i = 1; i <= human; i++){
			list.add(i);
		}

		for(int i = 0; i < okashi; i++){
			cnt = sc.nextInt();
			for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			}
		}

		System.out.println(list.size());

		sc.close();
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int human = sc.nextInt();
		int okashi = sc.nextInt();
		int cnt = 0;

		ArrayList<Integer> list = new ArrayList<>();

		for(int i = 1; i <= human; i++){
			list.add(i);
		}

		for(int i = 0; i < okashi; i++){
			cnt = sc.nextInt();
			for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			}
		}

		System.out.println(list.size());

		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);

		int human = sc.nextInt();
		int okashi = sc.nextInt();
		int cnt = 0;

		ArrayList<Integer> list = new ArrayList<>();

		for(int i = 1; i <= human; i++){
			list.add(i);
		}

		for(int i = 0; i < okashi; i++){
			cnt = sc.nextInt();
			for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			}
		}

		System.out.println(list.size());

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int human = sc.nextInt(); human sc.nextInt() sc.nextInt sc int okashi = sc.nextInt(); okashi sc.nextInt() sc.nextInt sc int cnt = 0; cnt 0 ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() for(int i = 1; i <= human; i++){
			list.add(i);
		} int i = 1; int i = 1; i 1 i <= human i human i++ i++ i {
			list.add(i);
		} {
			list.add(i);
		} list.add(i) list.add list i for(int i = 0; i < okashi; i++){
			cnt = sc.nextInt();
			for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			}
		} int i = 0; int i = 0; i 0 i < okashi i okashi i++ i++ i {
			cnt = sc.nextInt();
			for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			}
		} {
			cnt = sc.nextInt();
			for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			}
		} cnt = sc.nextInt() cnt sc.nextInt() sc.nextInt sc for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			} int j = 0; int j = 0; j 0 j < cnt j cnt j++ j++ j {
				list.remove((Object)sc.nextInt());
			} {
				list.remove((Object)sc.nextInt());
			} list.remove((Object)sc.nextInt()) list.remove list (Object)sc.nextInt() sc.nextInt sc System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list sc.close() sc.close sc String[] args args public class Main{
  public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int human = sc.nextInt();
		int okashi = sc.nextInt();
		int cnt = 0;

		ArrayList<Integer> list = new ArrayList<>();

		for(int i = 1; i <= human; i++){
			list.add(i);
		}

		for(int i = 0; i < okashi; i++){
			cnt = sc.nextInt();
			for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			}
		}

		System.out.println(list.size());

		sc.close();
	}
} public class Main{
  public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int human = sc.nextInt();
		int okashi = sc.nextInt();
		int cnt = 0;

		ArrayList<Integer> list = new ArrayList<>();

		for(int i = 1; i <= human; i++){
			list.add(i);
		}

		for(int i = 0; i < okashi; i++){
			cnt = sc.nextInt();
			for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			}
		}

		System.out.println(list.size());

		sc.close();
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main{
  public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int human = sc.nextInt();
		int okashi = sc.nextInt();
		int cnt = 0;

		ArrayList<Integer> list = new ArrayList<>();

		for(int i = 1; i <= human; i++){
			list.add(i);
		}

		for(int i = 0; i < okashi; i++){
			cnt = sc.nextInt();
			for(int j = 0; j < cnt; j++){
				list.remove((Object)sc.nextInt());
			}
		}

		System.out.println(list.size());

		sc.close();
	}
}