function Main(input) {
  input = parseInt(input.trim(), 10);
  if (input < 30) {
    console.log("No");
  } else {
    console.log("Yes");
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));