a = int(input()) if a % 4 == 0: if a % 100 == 0: if a % 400 == 0: print(a, 'Yes') else: print(a, 'No') else: print(a, 'Yes') else: print(a, 'No')