function Main(input){
	if(input<=104){
		console.log(0)
	}else if(input<=134){
		console.log(1)
	}else if(input<=164){
		console.log(2)
	}else if(input<=188){
		console.log(3)
	}else if(input<=194){
		console.log(4)
	}else{
		console.log(5)
	}
}Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());