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 sunuke[] = new int[n];
        for(int i=0; i<n; i++) {
            sunuke[i] = 0;
        }

        for(int i=0; i<k; i++) {
            int a = sc.nextInt();
            for(int j=0; j<a; j++) {
                int b = sc.nextInt() - 1;
                sunuke[b] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<n; i++) {
            if(sunuke[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 sunuke[] = new int[n];
        for(int i=0; i<n; i++) {
            sunuke[i] = 0;
        }

        for(int i=0; i<k; i++) {
            int a = sc.nextInt();
            for(int j=0; j<a; j++) {
                int b = sc.nextInt() - 1;
                sunuke[b] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<n; i++) {
            if(sunuke[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 sunuke[] = new int[n];
        for(int i=0; i<n; i++) {
            sunuke[i] = 0;
        }

        for(int i=0; i<k; i++) {
            int a = sc.nextInt();
            for(int j=0; j<a; j++) {
                int b = sc.nextInt() - 1;
                sunuke[b] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<n; i++) {
            if(sunuke[i] == 0) count++;
        }

        System.out.println(count);
	} main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        int sunuke[] = new int[n];
        for(int i=0; i<n; i++) {
            sunuke[i] = 0;
        }

        for(int i=0; i<k; i++) {
            int a = sc.nextInt();
            for(int j=0; j<a; j++) {
                int b = sc.nextInt() - 1;
                sunuke[b] = 1;
            }
        }

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

        for(int i=0; i<k; i++) {
            int a = sc.nextInt();
            for(int j=0; j<a; j++) {
                int b = sc.nextInt() - 1;
                sunuke[b] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<n; i++) {
            if(sunuke[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 sunuke[] = new int[n];
        for(int i=0; i<n; i++) {
            sunuke[i] = 0;
        }

        for(int i=0; i<k; i++) {
            int a = sc.nextInt();
            for(int j=0; j<a; j++) {
                int b = sc.nextInt() - 1;
                sunuke[b] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<n; i++) {
            if(sunuke[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 sunuke[] = new int[n];
        for(int i=0; i<n; i++) {
            sunuke[i] = 0;
        }

        for(int i=0; i<k; i++) {
            int a = sc.nextInt();
            for(int j=0; j<a; j++) {
                int b = sc.nextInt() - 1;
                sunuke[b] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<n; i++) {
            if(sunuke[i] == 0) count++;
        }

        System.out.println(count);
	}
}