#from collections import defaultdict n,K=map(int,input().split()) mod=10**9+7 d=dict() i=2 while 1