puts ("0." + gets.gsub(".", ",")).split(",").join.to_f - ("0." + gets.gsub(".", ",")).split(",").join.to_f >= 0 ? "YES":"NO"