<?php
//$s = trim(fgets(STDIN));
$t = trim(fgets(STDIN));

$count = strlen($t);
$t1 = mb_substr($t, 0, $count-1);
//$t2 = substr($s, -1, 1);

//echo $t1."\n";
//echo $t2."\n";


if($t1 == $s){
    echo "Yes";
}else{
    echo "No";
}
?>
