a = int(input()) if a < 3: print('NO') else: print('YES')