# Task
 Alireza and Ali have a `3×3 table` and playing on that. they have 4 table(2×2) A,B,C and D in this table.
 
 At beginning all of 9 numbers in 3×3 table is zero.
 
 Alireza in each move choose a 2×2 table from A, B, C and D and increase all of 4 numbers in that by one.
 
 He asks Ali, how much he increase table A, B, C and D. (if he cheats you should return `[-1]`)
 
 Your task is to help Ali.

# Example

 For 
 ```
 table=
[[1,2,1],
[2,4,2],
[1,2,1]]```
The result should be `[1,1,1,1]`

 For:
 ```
Table=
[[3,7,4],
[5,16,11],
[2,9,7]]```
The result should be `[3,4,2,7]`

# Input/Output


 - `[input]` 2D integer array `table`

 `3×3` table.


 - `[output]` an integer array

Difficulty: EASY
Starter code: def table_game(table):
	

Solutions:
def table_game(table):
	((a, ab, b), (ac, abcd, bd), (c, cd, d)) = table
	if a + b == ab and c + d == cd and (a + c == ac) and (b + d == bd) and (a + b + c + d == abcd):
		return [a, b, c, d]
	return [-1]


def table_game(table):
	(a, b, c, d) = (table[0][0], table[0][2], table[2][0], table[2][2])
	guess = [[a, a + b, b], [a + c, a + b + c + d, b + d], [c, c + d, d]]
	return [a, b, c, d] if table == guess else [-1]


def table_game(table):
	(top_left, top_right, bot_left, bot_right) = (table[0][0], table[0][-1], table[-1][0], table[-1][-1])
	(top, bot, left, right) = (table[0][1], table[-1][1], table[1][0], table[1][-1])
	center = table[1][1]
	if top_left + top_right == top and bot_left + bot_right == bot and (top_left + bot_left == left) and (top_right + bot_right == right) and (top + bot == center):
		return [top_left, top_right, bot_left, bot_right]
	else:
		return [-1]


def table_game(t):
	l = [t[0][0], t[0][2], t[2][0], t[2][2]]
	return l if sum(l) == t[1][1] and sum(sum(t, [])) == sum(l) * 4 else [-1]


def table_game(table):
	return [table[i][j] for i in (0, 2) for j in (0, 2)] if all((table[0][i] + table[2][i] == table[1][i] and table[i][0] + table[i][2] == table[i][1] for i in range(3))) else [-1]


def table_game(t):
	return [t[0][0], t[0][2], t[2][0], t[2][2]] if t[0][1] + t[2][1] == t[1][0] + t[1][2] == t[1][1] else [-1]


def table_game(t):
	[a, b, c, d] = [t[0][0], t[0][2], t[2][0], t[2][2]]
	return [a, b, c, d] if t[0][1] == a + b and t[1][0] == a + c and (t[1][2] == b + d) and (t[1][1] == a + b + c + d) and (t[2][1] == c + d) else [-1]


def table_game(table):
	if table[0][1] + table[1][0] + table[1][2] + table[2][1] == table[1][1] * 2:
		if table[0][0] + table[0][2] == table[0][1]:
			if table[2][0] + table[2][2] == table[2][1]:
				if table[0][0] + table[2][0] == table[1][0]:
					if table[0][2] + table[2][2] == table[1][2]:
						return [table[0][0], table[0][2], table[2][0], table[2][2]]
	return [-1]