object AtCode01 extends App {
  def code(a: String, b: String, c: String): String = {
    if(a.length >= 5 && b.length >= 5 && c.length >= 5 && (a.length + b.length + c.length) == 17){
      "YES"
    } else {
      "NO"
    }
  }
  println(code("ddddd","ddddd","ddddddd"))
}