class Solution(object):
def numberOfDice(self, n):
"""
:type n: int
:rtype: List[int]
"""
dp=[[0 for _ in range(6*n+1)] for _ in range(n+1)]
dp[0][0]=1
for x in range(1,n+1):
for y in range(1,x*6+1):
for z in range(1,min(y,6)+1):
dp[x][y]+=dp[x-1][y-z]
res=[]
for i in range(n,n*6+1):
res.append(dp[n][i])
return res