N = input() split_first = N.split() A = int(split_first[0]) B = int(split_first[1]) def urudosi(N): if N%400 == 0: print('Yes') elif N%100 == 0: print('No') elif N%4 == 0: print('Yes') else: print('No') urudosi(A)