#BS0000056. Mạng di động (Cellular Network)

Mạng di động (Cellular Network)

Cellular Network

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

There are nn cities and mm cellular towers on a straight line. Their coordinates are a1,…,ana_1,\ldots,a_n and b1,…,bmb_1,\ldots,b_m.

A tower at bjb_j covers a city at aia_i when

∣ai−bj∣≤r.|a_i-b_j|\le r.

All towers use the same integer coverage radius rr. Find the minimum rr such that every city is covered by at least one tower.

Input

  • The first line contains integers n,mn,m.
  • The second line contains city coordinates in non-decreasing order.
  • The third line contains tower coordinates in non-decreasing order.

Output

Print the minimum required radius rr.

Subtasks

  • Subtask 1 — 20%: 1≤n,m≤1001\le n,m\le100.
  • Subtask 2 — 30%: 1≤n,m≤50001\le n,m\le5000.
  • Subtask 3 — 50%: 1≤n,m≤1051\le n,m\le10^5, −109≤ai,bj≤109-10^9\le a_i,b_j\le10^9. Duplicate coordinates are allowed.

Example

Input

3 2
-2 2 4
-3 0

Output

4

Explanation

The nearest-tower distances for cities −2,2,4-2,2,4 are 1,2,41,2,4. Hence every radius below 44 fails for the city at 44, while r=4r=4 covers all cities.