# NC=30 # for p in range(NC): # print('p', p) # for q in range(p + 1): # print('q', q)