N = int(input()) a, b, c = map(int, input().split()) required_c = N + 1 - a if c == required_c and b != a and b != required_c: print("Yes") else: print("No")