Consider a square chess board with n rows and n columns, where every square contains between 0 and 9 coins. Write a program such that, given a chess board, computes the difference between the total number of coins on white aquares and the total number of coins on black squares.
Input
Input begins with the size n of the board. Follow n lines, each one with n characters between ‘0’ and ‘9’.
Output
Print the total number of coins on white squares, the tthe two diagonals of the board. the total number of coins on black squares, and their difference. Follow the format provided in the examples.
Input
4 2389 3402 3956 2018
Output
32-33 = -1
Input
3 975 123 450
Output
20-16 = 4