Problem J
Free Food
Do you know what attracts almost any college student to participate in an event? Yes, free food. It doesn’t matter whether the event involves a long (sometimes boring) seminar. As long as free food is served for the event, then students will surely come.
Suppose there are
For example, let there be
Input
The first line contains an integer
Output
The output contains an integer denoting the number of days in which free food is served by at least one event.
Sample Input 1 | Sample Output 1 |
---|---|
3 10 14 13 17 25 26 |
10 |
Sample Input 2 | Sample Output 2 |
---|---|
2 1 365 20 28 |
365 |
Sample Input 3 | Sample Output 3 |
---|---|
4 29 29 48 48 102 102 94 94 |
4 |