We play a game with n dots on a number line.
The initial coordinate of the i-th dot is x_i. These coordinates are distinct. Every dot starts moving simultaneously with the same constant speed.
Each dot moves in the direction of the closest dot (different from itself) until it meets another dot. In the case of a tie, it goes to the left. Two dots meet if they are in the same coordinate, after that, they stop moving.
After enough time, every dot stops moving. The result of a game is the number of distinct coordinates where the dots stop.
Because this game is too easy, calculate the sum of results when we play the game for every subset of the given n dots that has at least two dots. As the result can be very large, print the sum modulo 109+7.
The first line contains one integer n (2≤n≤3000).
The next line contains n integers x_1,x_2,…,x_n (1≤x_1<x_2<…<x_n≤109), where x_i represents the initial coordinate of i-th dot.
Print the sum of results modulo 109+7.