if int(input()) // 90 % 2 == 1: print("Yes") else: print("No")