Mr. Bouttell is teaching momentum in class and he wants to demonstrate how different objects interact when they collide. He has objects, with the th object having a momentum of . Mr. Bouttell wants to demonstrate that an object travelling at a higher momentum will be able to continue going if it collides with an object with a strictly lower momentum. Mr. Bouttell wants to know how many pairs of objects will collide in such a way that the first object will be able to continue going.

Can you help him?

#### Input Specification

The first line of input will contain a single integer, ()

The next line of input will consist of space separated integers, where the th integer denotes ().

#### Output Specification

A single line containing the number of pairs of objects will collide in such a way that the first object will be able to continue going.

#### Subtasks

**Subtask 1 (10%)**

**Subtask 2 (20%)**

**Subtask 3 (10%)**

**Subtask 4 (60%)**

No further constraints.

#### Sample Input

```
3
1 2 3
```

#### Sample Output

`3`

## Comments