if input() in "575": print("YES") else: print("NO")