n=int(input()) print("No" if n%4 else "Yes" if n%100 else "No" if n%400 else "Yes")