x = int(input()) print("Yes" if x == 0 or x == 4 or x == 10 else "No")