n, h, x = map(int, input().split())

if x + max(map(int, input().split())) >= h:
    print("YES")
else:
    print("NO")
91bf7310e8116979b034bb063708c878f769b5d7
<mask token>

<mask token>
if x + max(map(int, input().split())) >= h:
    print('YES')
else:
    print('NO')

n, h, x = map(int, input().split())
if x + max(map(int, input().split())) >= h:
    print('YES')
else:
    print('NO')

n, h, x = map(int, input().split())

if x + max(map(int, input().split())) >= h:
    print("YES")
else:
    print("NO")