Game of Thrones
Be careful here is spoiler
George Martin writes last volume of A Song of Ice and Fire. In this volume Daenerys Targaryen will take Iron throne. But firstly she needs to find the maximal protected area of Seven kingdoms for the first attack. Tyrion Lannister as military adviser need to help her. You can assume that Seven kingdoms is a rectangle and each cell has its own protection value. Protection value of an area is the xor of all cells in it. Tyrion needs to choose some rectangle with maximal protected area. The sides of rectangle must be parallel to the sides of 7 kingdoms. Help him to find such area.
Input
The first line contains two integers — , the height and the width of a Kingdom.
Each of the next lines contains integers , protection value of the cell .
Output
Print one integer — the answer to the problem.