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