Never odd or even
YES
<?php
$inputText=rtrim(stream_get_contents(STDIN));
if($inputText==='') exit;
function clean($t){
$t=strtolower($t);
$out='';
for($i=0,$n=strlen($t);$i<$n;$i++){
$ch=$t[$i];
if($ch===' ') continue;
$out.=$ch;
}
return $out;
}
$t=clean($inputText);
$l=0; $r=strlen($t)-1; $ok=true;
while($l<$r){
if($t[$l]!==$t[$r]){ $ok=false; break; }
$l++; $r--;
}
echo $ok ? 'YES' : 'NO';
?>
<?php
$inputText=rtrim(stream_get_contents(STDIN));
if($inputText==='') exit;
function clean($t){
$t=strtolower($t);
$out='';
for($i=0,$n=strlen($t);$i<$n;$i++){
$ch=$t[$i];
if($ch===' ') continue;
$out.=$ch;
}
return $out;
}
$t=clean($inputText);
$l=0; $r=strlen($t)-1; $ok=true;
while($l<$r){
if($t[$l]!==$t[$r]){ $ok=false; break; }
$l++; $r--;
}
echo $ok ? 'YES' : 'NO';
?>