function Main(input) {
	if(input[input.length-1] === 's'){
    	console.log(input.concat('es'))
    }else{
    	console.log(input.concat('s'))
    }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))