Implement the [Polybius square cipher](http://en.wikipedia.org/wiki/Polybius_square).

Replace every letter with a two digit number. The first digit is the row number, and the second digit is the column number of following square. Letters `'I'` and `'J'` are both 24 in this cipher:


table#polybius-square {width: 100px;}
table#polybius-square td {background-color: #2f2f2f;}
table#polybius-square th {background-color: #3f3f3f;}


12345
1ABCDE
2FGHI/JK
3LMNOP
4QRSTU
5VWXYZ


Input will be valid (only spaces and uppercase letters from A to Z), so no need to validate them.

## Examples

```python
polybius('A')  # "11"
polybius('IJ') # "2424"
polybius('CODEWARS') # "1334141552114243"
polybius('POLYBIUS SQUARE CIPHER') # "3534315412244543 434145114215 132435231542"
```

Difficulty: EASY
Starter code: def polybius(text):
	

Solutions:
def polybius(text):
	letmap = {'A': '11', 'B': '12', 'C': '13', 'D': '14', 'E': '15', 'F': '21', 'G': '22', 'H': '23', 'I': '24', 'J': '24', 'K': '25', 'L': '31', 'M': '32', 'N': '33', 'O': '34', 'P': '35', 'Q': '41', 'R': '42', 'S': '43', 'T': '44', 'U': '45', 'V': '51', 'W': '52', 'X': '53', 'Y': '54', 'Z': '55', ' ': ' '}
	enc = ''
	for i in range(0, len(text)):
		enc = enc + letmap[text[i].upper()]
	return enc


def polybius(text):
	square = [['A', 'B', 'C', 'D', 'E'], ['F', 'G', 'H', 'I', 'K'], ['L', 'M', 'N', 'O', 'P'], ['Q', 'R', 'S', 'T', 'U'], ['V', 'W', 'X', 'Y', 'Z']]
	encoded = ''
	for letter in text.replace('J', 'I'):
		if letter == ' ':
			encoded += ' '
		else:
			r = [i for (i, row) in enumerate(square) if letter in row][0]
			c = [row.index(letter) for row in square if letter in row][0]
			encoded += str(r + 1) + str(c + 1)
	encoded += ' '
	return encoded[:-1]


def trans(c):
	v = ord(c) - ord('A')
	if ord(c) == ord(' '):
		return ' '
	elif ord(c) < ord('J'):
		return ''.join([str(v // 5 + 1), str(v % 5 + 1)])
	else:
		v -= 1
		return ''.join([str(v // 5 + 1), str(v % 5 + 1)])

def polybius(text):
	return ''.join(map(trans, text))


table = {char: str(i + 10 * j + 11) for (j, row) in enumerate('ABCDE FGHIK LMNOP QRSTU VWXYZ'.split()) for (i, char) in enumerate(row)}

def polybius(text):
	return ''.join((table.get(char, ' ') for char in text.replace('J', 'I')))


def polybius(text):
	numeric_key = {'a': '11', 'b': '12', 'c': '13', 'd': '14', 'e': '15', 'f': '21', 'g': '22', 'h': '23', 'i': '24', 'j': '24', 'k': '25', 'l': '31', 'm': '32', 'n': '33', 'o': '34', 'p': '35', 'q': '41', 'r': '42', 's': '43', 't': '44', 'u': '45', 'v': '51', 'w': '52', 'x': '53', 'y': '54', 'z': '55', ' ': ' '}
	numeric_string = ''
	for character in text.lower():
		numeric_string += numeric_key[character]
	return numeric_string