N = int(input()) S = input() a = [0] * N possible = False if not possible: print("NO") else: print("YES") print(*a)