print("YNeos"[int(input())%8!=0::2])