L,D=map(int,input().split()) DP=[0]*(L+1) for i in range(1,L+1): flag=0 for x in range(1,i): for y in range(x+1,i): z=i-x-y if 1<=x