exec(''.join(["from sympy import ispr", "ime as isp"])) print("YES" if isp(int(input())) else "NO")