#### Жишээ тэстүүд

##### Оролт
4
RLRL
2 4 6 10

##### Гаралт
1

##### Оролт
3
LLR
40 50 60

##### Гаралт
-1


## Тэмдэглэл

In the first sample case the first explosion will happen in 1 microsecond because the particles number 1 and 2 will simultaneously be at the same point with the coordinate 3.

In the second sample case there will be no explosion because there are no particles which will simultaneously be at the same point.