from sys import stdin

N, S = map(int, stdin.readline().split())

if S/N >= 2:
    print("YES")
    L = [2]*(N-1)
    L.append(S-2*N+2)
    print(" ".join(map(str, L)))
    print(1)
else:
    print("NO")
