#include using namespace std; #define rep(i,n) for(int i = 0; i < (int)n; i++) using ll = long long; constexpr int MAX = 16; constexpr int BASE = 260; constexpr int dx[4] = {0,1,0,-1}; constexpr int dy[4] = {1,0,-1,0}; int main(){ int k; cin >> k; vector> dp(1<(2*BASE)); dp[0][BASE] = 1; rep(bit,1<= 0 and nx < 4 and ny >= 0 and ny < 4) { cnt++; if(bit & (1<<(nx*4+ny))) exi++; } } int res = s + exi*bc - (cnt-exi)*bc; if(res >= 0 and res < 2*BASE) dp[bit|(1<<(x*4+y))][res] += dp[bit][s]; } } } cout << dp[(1<