#include int main(void) { int n; scanf("%d", &n); int grid[9][9]={0}; grid[2-1][8-1]=1; grid[3-1][9-1]=2; grid[7-1][9-1]=3; for (int i=0; i