n, score = gets.split.map(&:to_i)

# dp[i][j][k]
# 上からi段目
# j個保留
# スコアがk

dp = Array.new(n + 1) { Array.new(n + 1) { Array.new(score + 2 * n + 1) { 0 } } }

dp[0][0][0] = 1
(0 ... n).each do |i|
  (0 ... n).each do |j|
    (0 ...score).each do |k|
      nj                    = j
      dp[i + 1][nj][k + nj] += dp[i][j][k]

      nj                    = j + 1
      dp[i + 1][nj][k + nj] += dp[i][j][k]

      nj                    = j
      x                     = j * 2
      dp[i + 1][nj][k + nj] += dp[i][j][k] * x

      if j >= 1
        nj                    = j - 1
        x                     = j * j
        dp[i + 1][nj][k + nj] += dp[i][j][k] * x
      end
    end
  end
end
ans = dp[n][0][score / 2]
ans = 0 if score & 1 != 0
puts ans % 10**9+7
