import calendar;print(['NO','YES'][calendar.isleap(int(input()))])