function Main(input) {
	input = input.trim().split("\n").map(function(x) { return x.split(" ")});
	let X = parseInt(input[0][0], 10);
	if (X >= 30) console.log('Yes');
	else console.log('No');
}

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