There are N non-negative integers a_1,a_2,…,a_N satisfying the following inequality 0≤a_1<a_2<⋯<a_N≤1018. Jeehak wants to know the largest possible value of a_i+1−a_i where i ranges from 1 to N−1. The input integers will not be given directly to Jeehak's program but will be accessible through a special funtion. See sections Implementation of your selected programming language for details.
Help Jeehak to implement a function to return the largest possible value of a_i+1−a_i where i ranges from 1 to N−1.
In allsubtasks the constraint 2≤N≤100,000 holds.