L,D=map(int,input().split()) g=[0]*(L+1) for l in range(1,L+1): c=[0]*(L+1) for l1 in range(1,l+1): for l2 in range(1,l+1): l3=l-l1-l2 if l10])