N=int(input()) a,b,c=map(int,input().split()) n2 = N*2 d = N-a a += d b = (b+d-1)%n2+1 c = (c+N+d-1)%n2+1 if c <= N and b > N: print("Yes") else: print("No")