#770. Knight moves
A chess knight stands on the square (x, y) (1-8). How many moves can it make without leaving the board?
### Input
One line: x y.
### Output
A number.
Examples
Input
8 8
Output
2
Input
6 2
Output
6
💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.