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