CF13C Sequence

Description

Little Petya likes to play very much. And most of all he likes to play the following game: He is given a sequence of $ N $ integer numbers. At each step it is allowed to increase the value of any number by $ 1 $ or to decrease it by $ 1 $ . The goal of the game is to make the sequence non-decreasing with the smallest number of steps. Petya is not good at math, so he asks for your help. The sequence $ a $ is called non-decreasing if $ a_{1}

Input Format

N/A

Output Format

N/A