# coding: utf-8 m = int(input()) if m >= 3: print('YES') else: print('NO')