Game#11401

Game

1 saniye
128 megabayt
Çok kolay

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.

Giriş

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).

Çıktı

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

Örnekler

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.

Örnek 1

Loading
Loading

Örnek 2

Loading
Loading