n=int(input()) if n==1: print("YES") else: print("NO")