N = int(input()) print("Yes" if (N % 400 == 0 or (N % 100 != 0 and N % 4 == 0)) else "No")