import sys read=sys.stdin.buffer.read readline=sys.stdin.buffer.readline readlines=sys.stdin.buffer.readlines l, d=map(int, readline().split()) g=[0]*(l+1) for x in range(1, l+1): st=set() for a in range(1, x): for b in range(1, a): c=x-a-b if 0