N, K = gets.split.map(&:to_i)
MOD = 10**9 + 7

dp = Array.new(N + 1){Array.new(N + 1){Array.new(K + 2*N + 1, 0)}}
dp[0][0][0] = 1
(0 ... N).each do |i|
  (0 .. N).each do |j|
    (0 .. K).each do |k|
      next if (d = dp[i][j][k]) == 0
      l = k + 2*j
      dp[i + 1][j][l] = (dp[i + 1][j][l] + (2*j + 1)*d) % MOD
      dp[i + 1][j - 1][l] = (dp[i + 1][j - 1][l] + j*j*d) % MOD if j > 0
      dp[i + 1][j + 1][l] = (dp[i + 1][j + 1][l] + d) % MOD
    end
  end
end
puts  dp[N][0][K]