CF220E Little Elephant and Inversions

Description

The Little Elephant has array $ a $ , consisting of $ n $ positive integers, indexed from 1 to $ n $ . Let's denote the number with index $ i $ as $ a_{i} $ . The Little Elephant wants to count, how many pairs of integers $ l $ and $ r $ are there, such that $ 1

Input Format

The first line contains two integers $ n $ and $ k $ $ (2

Output Format

In a single line print a single number — the answer to the problem.