$frst=<>;
$we=<>;
chomp($first);
chomp ($we);
@let=split'',$frst;
@tel=reverse(@let);
$tsrf=join'',@tel;
if ($tsrf eq $we) {
	print ("all right");
} else {
	print ("no");
}
