A turnstile writes each successful badge scan to a log. The log is already sorted in non-decreasing order of badge ID, and the same badge may appear many times in a row. Report how many distinct badge IDs appear.
Input format
Line 1: an integer n.
Line 2: n non-decreasing integers, the scanned badge IDs.
Output format
A single integer: the number of distinct badge IDs.
Constraints
- 1 ≤ n ≤ 100000
- 1 ≤ each badge ID ≤ 1000000000
- The IDs are given in non-decreasing order.