PROGRAMMING:Number of participants
There are many associations in Linyi University. A student may join many associations. In order to enliven college students' spare time life and enhance their enthusiasm for sports, the Reading Association of Linyi university decided to hold a rope skipping competition for college students, requiring its members to participate. In order to expand its influence, it is required that as long as one member of other societies participates, everyone in the society must participate. How many people are there in the competition?
###Input format:
The first line of input contains two integers n and M. n (0 < n < = 30000) represents the number of students and m (0 < = m < = 500) represents the number of communities. Each student has a unique number, the number value is 0 to n-1, the number of the club is 0 reading club.
Next, there is a list of M communities, and the list of each community is one line in the input. Enter a number k in each line to indicate the total number of members. Then there are the numbers of K members in the club.
###Output format:
Output a number in one line, indicating the total number of participants in the competition.
###Input example:
```in
100 4
2 1 2
5 10 13 11 12 14
2 0 1
2 99 2
```
###Output example:
```out
four
```
answer:If there is no answer, please comment
###Input format:
The first line of input contains two integers n and M. n (0 < n < = 30000) represents the number of students and m (0 < = m < = 500) represents the number of communities. Each student has a unique number, the number value is 0 to n-1, the number of the club is 0 reading club.
Next, there is a list of M communities, and the list of each community is one line in the input. Enter a number k in each line to indicate the total number of members. Then there are the numbers of K members in the club.
###Output format:
Output a number in one line, indicating the total number of participants in the competition.
###Input example:
```in
100 4
2 1 2
5 10 13 11 12 14
2 0 1
2 99 2
```
###Output example:
```out
four
```
answer:If there is no answer, please comment