from sympy import divisors N = int(input()) print('Yes' if 2*N == sum(divisors(N)) else 'No')