시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB56232160.000%

## 문제

Alice and Bob are playing the following game. Initially, n stones are placed in a straight line on a table. Alice and Bob take turns alternately. In each turn, the player picks one of the stones and removes it. The game continues until the number of stones on the straight line becomes two. The two stones are called result stones. Alice’s objective is to make the result stones as distant as possible, while Bob’s is to make them closer.

You are given the coordinates of the stones and the player’s name who takes the first turn. Assuming that both Alice and Bob do their best, compute and output the distance between the result stones at the end of the game.

## 입력

The input consists of a single test case with the following format.

n f
x1 x2 · · · xn

n is the number of stones (3 ≤ n ≤ 105). f is the name of the first player, either Alice or Bob. For each i, xi is an integer that represents the distance of the i-th stone from the edge of the table. It is guaranteed that 0 ≤ x1 < x2 < · · · < xn ≤ 109 holds.

## 출력

Output the distance between the result stones in one line.

## 예제 입력 1

5 Alice
10 20 30 40 50


## 예제 출력 1

30


## 예제 입력 2

5 Bob
2 3 5 7 11


## 예제 출력 2

2