#include <stdio.h>

int main()
{

    int n, k;
    scanf("%d %d", &n,&k);
    int have[101];

    //歌詞
    int many;
    for (int i = 0; i < n; i++)
    {
      
      
            have[i] = 0; //所有0
      
    }
    int p;
    for (int i = 0; i < k; i++)
    {
        scanf("%d", &many);
        for (int j = 0; j < many;j++){
            scanf("%d", &p);
            have[p-1] = 1;//所有
        }
    }
    int count = 0;
    for (int i = 0; i < n; i++)
    {

   if(have[i] == 0)count++; //所有0
    }

    printf("%d", count);
    printf("\n");
}