object Main extends App {
  def Y(swich: Int): Unit ={
    println(if(swich == 1) "Yes" else "No")
  }

  val sc = new java.util.Scanner(System.in)
  var n = sc.nextInt()
  Y(if (n >= 30) 1 else 0)
}
