#Given two cells on the standard chess board, determine whether they have the same color or not.

#Example

#For cell1 = "A1" and cell2 = "C3", the output should be
#chessBoardCellColor(cell1, cell2) = true.

#For cell1 = "A1" and cell2 = "H3", the output should be
#chessBoardCellColor(cell1, cell2) = false.

def chessBoardCellColor(cell1, cell2):

	letters = ['A','B','C','D','E','F','G','H']
	numbers = ['1','2','3','4','5','6','7','8']

	indexL = 0
	indexN = 0
	colors = [0]*2
	colorInd = 0

	for i in numbers:
		indexN += 1
		indexL = 0
		for j in letters:
			#print (i+j,cell1)
			#print (cell1==(i+j))
			# If both indeces are even or odd, then they are of the same color
			if (( (j+i) == cell1 ) | ( (j+i)==cell2 )):
				if (((indexN%2!=0) & (indexL%2==0)) |  ((indexN%2==0) & (indexL%2!=0))):
					colors[colorInd] = 'black'
				else:
					colors[colorInd] = 'white'
				colorInd += 1				
				#print (colorInd)
				if colorInd == 2:
					#print (colors)
					#Are both black or white odd?
					if (((colors[0] == 'white') & (colors[1] == 'white')) | ((colors[0] == 'black') & (colors[1] == 'black'))):
						return True
					else:
						return False	
			indexL += 1
	

	