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