A = int(input()) if A >= 3: print('YES') else: print('NO')