The Ferries Wheel is a circle,rounded by many cable cars,and the cars are numbered $1,2,3...K-1,K$ in order.Every cable car has a unique value and $A[i-1] < A[i] < A[i+1] (1<i<K)$.
Today,Misaki invites $N$ friends to play in the Ferries Wheel.Every one will enter a cable car. One person will receive a kiss from Misaki,if this person satisfies the following condition: (his/her cable car's value + the left car's value
)
% INT_MAX = the right car's value,the ${1}^{st}$ car’s left car is the ${k}^{th}$ car,and the right one is ${2}^{nd}$ car,the ${k}^{th}$ car’s left car is the ${(k-1)}^{th}$ car,and the right one is the ${1}^{st}$ car.
Please help Misaki to calculate how many kisses she will pay,you can assume that there is no empty cable car when all friends enter their cable cars,and one car has more than one friends is valid.