import sys



cand = [7, 5, 3]



x = int(sys.stdin.readline().rstrip())



def main():

    return 'YES' if x in cand else 'NO'



if __name__ == '__main__':

    ans = main()

    print(ans)
import sys



u = set('753')

x = sys.stdin.readline().rstrip()



def main():

    ans = 'YES' if x in u else 'NO'

    print(ans)



if __name__ ==  '__main__':

    main()
import sys

cand = [7, 5, 3]
x = int(sys.stdin.readline().rstrip())


def main():
    return "YES" if x in cand else "NO"


if __name__ == "__main__":
    ans = main()
    print(ans)

import sys

u = set("753")
x = sys.stdin.readline().rstrip()


def main():
    ans = "YES" if x in u else "NO"
    print(ans)


if __name__ == "__main__":
    main()

-cand = [7, 5, 3] -x = int(sys.stdin.readline().rstrip()) +u = set("753") +x = sys.stdin.readline().rstrip() -    return "YES" if x in cand else "NO" +    ans = "YES" if x in u else "NO" +    print(ans) -    ans = main() -    print(ans) +    main()