// C_Square

# include <stdio.h> 
# include <stdlib.h>

typedef struct Node
{
	long Num;
	int flag;
}NODE, *pNODE;

int main(void)
{
	int n;
	int flag = 0;
	int i, j;
	scanf("%d",&n);
	pNODE node = (pNODE)malloc(sizeof(NODE)*n);
	
	node[0].flag = 1;
	
	for (i=0; i<n; i++)
	{
		flag = 0;
		scanf("%ld",&node[i].Num);
		for (j=0; j<i; j++)
		{
			if (node[i].Num == node[j].Num)
			{
				node[i].flag = node[i-1].flag - 1;
				flag = 1;
				break;
			}
		}
		if (flag == 0 && i>=1)
			node[i].flag = node[i-1].flag + 1;
	}
	printf("%d",node[n-1].flag) ;
	
	
	return 0;
}