A. King Movestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe only king stands on the standard chess board. You are given his position in format "cd", where c is the column from 'a' to 'h' and d is the row from '1' to '8'. Find the number of moves permitted for the king.Check the king's moves here https://en.wikipedia.org/wiki/King_(chess).  King moves from the position e4 InputThe only line contains the king's position in the format "cd", where 'c' is the column from 'a' to 'h' and 'd' is the row from '1' to '8'.OutputPrint the only integer x — the number of moves permitted for the king.ExampleInpute4Output8
Inpute4
Output8
['implementation', '*800']