print('YES' if input().split() >= input().split() else 'NO')