#include <stdio.h>
#include <stdlib.h>
int main()
{
int x, y,i;
scanf("%d", &x);
y = 0;
for (i = 1; i < x; i++)
{
if (x % i == 0)
{
y += i;
}
}
if (y == x)
{
printf("yes");
}
else
{
printf("no");
}
return 0;
}