_,k,*a=map(int,open(0).read().split());r=1;print(1) for t in a:r+=t>k;print(r)