a = gets.to_i if (a%2 == 0 && a >= 6) || a == 3 puts 'YES' else puts 'NO' end