p = int(input()) if(p == 7): print("YES") else: print("NO")