Cut off the 4 corner squares of the 3x4 rectangular grid.
Now place the digits 1 to 8 in the remaining 8 squares in a way.
such that no adjacent numbers are in adjacent squares (horizontally, vertically, or diagonally).
How many different solutions exist?