import sequtils,strutils,algorithm,math var N = stdin.readline.parseInt a = 0 i = 1 while i * i <= N: if N mod i == 0: a += i if i * i != N: a += N div i i += 1 if a == 2 * N: echo("Yes") else: echo("No")