# coding: utf-8 n, m, x = map(int, input().split()) if m >= 3: print('YES') else: print('NO')