n,m=map(int,input().split()) a=list(range(1,n))+[m-n*(n-1)//2] print(["No","Yes"][len(a)==1 or a[-2]