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