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();
    Set<Integer> member = new HashSet<Integer>();
    for(int i = 0 ; i < K ; i++){
      int d = sc.nextInt();
      for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      }
    }
        System.out.println(N - member.size());
	}
} 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();
    Set<Integer> member = new HashSet<Integer>();
    for(int i = 0 ; i < K ; i++){
      int d = sc.nextInt();
      for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      }
    }
        System.out.println(N - member.size());
	}
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    Set<Integer> member = new HashSet<Integer>();
    for(int i = 0 ; i < K ; i++){
      int d = sc.nextInt();
      for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      }
    }
        System.out.println(N - member.size());
	} main {
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    Set<Integer> member = new HashSet<Integer>();
    for(int i = 0 ; i < K ; i++){
      int d = sc.nextInt();
      for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      }
    }
        System.out.println(N - member.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 Set<Integer> member = new HashSet<Integer>(); member new HashSet<Integer>() for(int i = 0 ; i < K ; i++){
      int d = sc.nextInt();
      for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      }
    } int i = 0 ; int i = 0 ; i 0 i < K i K i++ i++ i {
      int d = sc.nextInt();
      for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      }
    } {
      int d = sc.nextInt();
      for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      }
    } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      } int j = 0 ; int j = 0 ; j 0 j < d j d j++ j++ j {
        int candy = sc.nextInt();
        member.add(candy);
      } {
        int candy = sc.nextInt();
        member.add(candy);
      } int candy = sc.nextInt(); candy sc.nextInt() sc.nextInt sc member.add(candy) member.add member candy System.out.println(N - member.size()) System.out.println System.out System System.out N - member.size() N member.size() member.size member 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();
    Set<Integer> member = new HashSet<Integer>();
    for(int i = 0 ; i < K ; i++){
      int d = sc.nextInt();
      for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      }
    }
        System.out.println(N - member.size());
	}
} public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    Set<Integer> member = new HashSet<Integer>();
    for(int i = 0 ; i < K ; i++){
      int d = sc.nextInt();
      for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      }
    }
        System.out.println(N - member.size());
	}
} 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();
    Set<Integer> member = new HashSet<Integer>();
    for(int i = 0 ; i < K ; i++){
      int d = sc.nextInt();
      for(int j = 0 ; j < d ; j++){
        int candy = sc.nextInt();
        member.add(candy);
      }
    }
        System.out.println(N - member.size());
	}
}
