package main import . "fmt" import . "sort" import . "os" import bf "bufio" import "math/rand" func main() { rd:=bf.NewReader(Stdin) var n, s int Fscan(rd,&n,&s) p:=make([]int,n) for i:=range p { Fscan(rd,&p[i]) } idx:=rand.Perm(n) Slice(idx,func(i,j int)bool { a:=idx[i] b:=idx[j] return p[a]0&&p[i]-p[idx[j-1]]<=s { continue } if j+10 { Print(" ") } Print(v+1) } Println() }