import sys


# def main(n, k):
#     if (2 * k - 1) <= n:
#         return "YES"
#     else:
#         return "NO"


n, k = (int(i) for i in input().split())

result = ''
if (2 * k - 1) <= n:
    result = result.join('YES')
else:
    result = result.join('NO')
print(result)

4acd7c5a6a3f60a8a92eececab7d450da36fdd9c
<mask token>

<mask token>
if 2 * k - 1 <= n:
    result = result.join('YES')
else:
    result = result.join('NO')
print(result)

<mask token>
n, k = (int(i) for i in input().split())
result = ''
if 2 * k - 1 <= n:
    result = result.join('YES')
else:
    result = result.join('NO')
print(result)

import sys
n, k = (int(i) for i in input().split())
result = ''
if 2 * k - 1 <= n:
    result = result.join('YES')
else:
    result = result.join('NO')
print(result)

import sys


# def main(n, k):
#     if (2 * k - 1) <= n:
#         return "YES"
#     else:
#         return "NO"


n, k = (int(i) for i in input().split())

result = ''
if (2 * k - 1) <= n:
    result = result.join('YES')
else:
    result = result.join('NO')
print(result)
