Mrinmay and Harsh are currently attending a very boring class. They are trying very hard to understand what is being taught but are unable to grasp anything. In order to pass the time, Mrinmay offered an Android game to Harsh which he had just finished developing last night and challenged Harsh to complete the game.
The game consists of two towers, tower A and tower B, which were made of different detachable sections of varying heights in which N and M are the number of segments initially in tower A and tower B respectively, and the initial total length of each of the towers A and B is equal to the sum of their individual segments' length. The player needs to perform certain operations such that the difference between the heights of the two towers is MINIMUM. This minimum height difference is what is needed as the answer.
The different operations that can be performed are:
INPUT
The first line consists of two space separated integers N and M .
The second line consists of N space separated integers Ai which denotes the Heights of the individual sections of Tower A.
The Third line consists of M space separated integers Bi which denotes the Heights of the individual sections of Tower B.
OUTPUT
Output a single integer which is the minimum possible difference between the height of the two tower Achievable.
CONSTRAINTS
1<=N ,M<=100
1<=Ai ,Bi<=100
If we swap the section with height 25 in tower A and the section with height 22 in tower B , the heights of the two towers A and B become 142 and 139 respectively. Thus the minimum height difference is (142-139)=3 .