Game#11401

Game

1 second
128 megabytes
Very easy

In their free time, Fidan and Fuad like to play games at home. This time, they came up with a new game:

The numbers said by Fidan are given as a sequence a_1, a_2, \ldots, a_n — in the exact order she says them. Help Fidan determine how many distinct numbers remain on the paper at the end of the game.

Input

The first line contains a single integer n~(1 \le n \le 10^5). The second line contains integers a_1, a_2, \ldots, a_n~(1 \le a_i \le 10^9).

Output

Print the count of numbers that remain on the paper at the end of the game.

Examples

Let's consider the first example. The game proceeds as follows:

  • The number is not on the paper — Fuad writes down .

  • The number is not on the paper — Fuad writes down .

  • The number is not on the paper — Fuad writes down .

  • The number is already on the paper — Fuad erases .

At the end of the game, there are numbers remaining on the paper.

Example 1

Loading
Loading

Example 2

Loading
Loading