2022 SSMO Relay Round 5 Problems/Problem 1

Problem

Consider an $8\times 8$ chessboard with a knight in one of the center squares. The knight may move in an $L$-shaped fashion, going two squares in one direction and one square in a perpendicular direction, but cannot go outside the chessboard. How many squares can the knight reach in exactly two moves?

Solution