"use strict";
var input = require("fs").readFileSync("/dev/stdin", "utf8");
var cin = input.split(/ |\n/), cid = 0;
function next(a) { return a ? cin[cid++] : +cin[cid++]; }
function nexts(n, a) { return a ? cin.slice(cid, cid += n) : cin.slice(cid, cid += n).map(a => +a); }
function nextm(h, w, a) { var r = [], i = 0; if (a) for (; i < h; i++)r.push(cin.slice(cid, cid += w)); else for (; i < h; i++)r.push(cin.slice(cid, cid += w).map(a => +a)); return r; }
function xArray(v) { var a = arguments, l = a.length, r = "Array(a[" + --l + "]).fill().map(x=>{return " + v + ";})"; while (--l) r = "Array(a[" + l + "]).fill().map(x=>" + r + ")"; return eval(r); }

var myOut = main();
if (myOut !== undefined) console.log(myOut);

function main() {
    //console.log(cin);
    cin = cin.map(i => +i);
    var n = cin.shift();
    let nArray = Array(n + 1).fill(1);
    nArray[0] = 0;
    var k = cin.shift();
    let pdi = 0;
    let A = [];
    for (let i = 0; i < cin.length;) {
        let di = (cin[i]); i++;
        //console.log(di);
        //        A.push(cin.slice(i,i+ di)); i += di;
        let used = cin.slice(i, i + di); i += di;
        used.forEach(i => { nArray[i] = 0; });
        //console.log("used:", used);
    }
    let ans = 0;
    //console.log(nArray);
    nArray.forEach(x => { ans += x; });


    return ans;
}