Platforms
In older games one can run into the next situation. The hero jumps along the platforms that hang in the air. He must move himself from one side of the screen to the other. When the hero jumps from one platform to the neighboring, he spends energy, where and are the heights where these platforms hang. The hero can make a super jump that allows him to skip one platform, but it takes him energy.
You are given the heights of the platforms in order from the left side to the right. Find the minimum amount of energy to get from the -st (start) platform to the -th (last). Print the list (sequence) of the platforms that the hero must pass.
Input
The first line contains the number of platforms . The second line gives integers — the heights of the platforms, which absolute values are not grater than .
Output
Print in the first line the minimum amount of energy to get from the -st platform to the -th. Print in the second line the number of platforms to pass. Give in the third line the list of these platforms.