import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;

public class Main {
    public  static void main(String[] args) {
        FastScanner sc = new FastScanner();

        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        List<Integer> a = new ArrayList<Integer>();
        int num;
        int num2;

        for(int i = 1; i <= K; i ++) {
        	num = Integer.parseInt(sc.next());
        	for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	}
        }
        System.out.print(N - a.size());
    }
}

class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
    public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
} import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.NoSuchElementException; NoSuchElementException java.util public class Main {
    public  static void main(String[] args) {
        FastScanner sc = new FastScanner();

        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        List<Integer> a = new ArrayList<Integer>();
        int num;
        int num2;

        for(int i = 1; i <= K; i ++) {
        	num = Integer.parseInt(sc.next());
        	for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	}
        }
        System.out.print(N - a.size());
    }
} Main public  static void main(String[] args) {
        FastScanner sc = new FastScanner();

        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        List<Integer> a = new ArrayList<Integer>();
        int num;
        int num2;

        for(int i = 1; i <= K; i ++) {
        	num = Integer.parseInt(sc.next());
        	for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	}
        }
        System.out.print(N - a.size());
    } main {
        FastScanner sc = new FastScanner();

        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        List<Integer> a = new ArrayList<Integer>();
        int num;
        int num2;

        for(int i = 1; i <= K; i ++) {
        	num = Integer.parseInt(sc.next());
        	for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	}
        }
        System.out.print(N - a.size());
    } FastScanner sc = new FastScanner(); sc new FastScanner() int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int K = Integer.parseInt(sc.next()); K Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> a = new ArrayList<Integer>(); a new ArrayList<Integer>() int num; num int num2; num2 for(int i = 1; i <= K; i ++) {
        	num = Integer.parseInt(sc.next());
        	for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	}
        } int i = 1; int i = 1; i 1 i <= K i K i ++ i ++ i {
        	num = Integer.parseInt(sc.next());
        	for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	}
        } {
        	num = Integer.parseInt(sc.next());
        	for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	}
        } num = Integer.parseInt(sc.next()) num Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	} int j = 0; int j = 0; j 0 j < num j num j++ j++ j {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	} {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	} num2 = Integer.parseInt(sc.next()) num2 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(!a.contains(num2)) {
        			a.add(num2);
        		} !a.contains(num2) a.contains(num2) a.contains a num2 {
        			a.add(num2);
        		} a.add(num2) a.add a num2 System.out.print(N - a.size()) System.out.print System.out System System.out N - a.size() N a.size() a.size a String[] args args class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
    public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
} FastScanner private final InputStream in = System.in; in System.in System System.in private final byte[] buffer = new byte[1024]; buffer new byte[1024] 1024 private int ptr = 0; ptr 0 private int buflen = 0; buflen 0 private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    } hasNextByte {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    } if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        } ptr < buflen ptr buflen {
            return true;
        } return true; true {
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        } ptr = 0 ptr 0 try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } IOException e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                buflen = in.read(buffer);
            } buflen = in.read(buffer) buflen in.read(buffer) in.read in buffer if (buflen <= 0) {
                return false;
            } buflen <= 0 buflen 0 {
                return false;
            } return false; false return true; true private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;} readByte { if (hasNextByte()) return buffer[ptr++]; else return -1;} if (hasNextByte()) return buffer[ptr++]; else return -1; hasNextByte() hasNextByte return buffer[ptr++]; buffer[ptr++] buffer ptr++ ptr return -1; -1 1 private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;} isPrintableChar { return 33 <= c && c <= 126;} return 33 <= c && c <= 126; 33 <= c && c <= 126 33 <= c 33 c c <= 126 c 126 int c c public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();} hasNext { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();} while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; hasNextByte() && !isPrintableChar(buffer[ptr]) hasNextByte() hasNextByte !isPrintableChar(buffer[ptr]) isPrintableChar(buffer[ptr]) isPrintableChar buffer[ptr] buffer ptr ptr++ ptr return hasNextByte(); hasNextByte() hasNextByte public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    } next {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    } if (!hasNext()) throw new NoSuchElementException(); !hasNext() hasNext() hasNext throw new NoSuchElementException(); new NoSuchElementException() StringBuilder sb = new StringBuilder(); sb new StringBuilder() int b = readByte(); b readByte() readByte while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        } isPrintableChar(b) isPrintableChar b {
            sb.appendCodePoint(b);
            b = readByte();
        } sb.appendCodePoint(b) sb.appendCodePoint sb b b = readByte() b readByte() readByte return sb.toString(); sb.toString() sb.toString sb public class Main {
    public  static void main(String[] args) {
        FastScanner sc = new FastScanner();

        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        List<Integer> a = new ArrayList<Integer>();
        int num;
        int num2;

        for(int i = 1; i <= K; i ++) {
        	num = Integer.parseInt(sc.next());
        	for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	}
        }
        System.out.print(N - a.size());
    }
} public class Main {
    public  static void main(String[] args) {
        FastScanner sc = new FastScanner();

        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        List<Integer> a = new ArrayList<Integer>();
        int num;
        int num2;

        for(int i = 1; i <= K; i ++) {
        	num = Integer.parseInt(sc.next());
        	for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	}
        }
        System.out.print(N - a.size());
    }
} Main
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;

public class Main {
    public  static void main(String[] args) {
        FastScanner sc = new FastScanner();

        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        List<Integer> a = new ArrayList<Integer>();
        int num;
        int num2;

        for(int i = 1; i <= K; i ++) {
        	num = Integer.parseInt(sc.next());
        	for(int j = 0; j < num; j++) {
        		num2 = Integer.parseInt(sc.next());
        		if(!a.contains(num2)) {
        			a.add(num2);
        		}
        	}
        }
        System.out.print(N - a.size());
    }
}

class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
    public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
}