<?php
$text = "А роза упала на лапу Азора";
$resultTrue = 'палиндром';
$resultFalse = 'не палиндром';
$halfLenght = floor($lenght / 2);
for ($i = 0; $i < $halfLenght; $i++) {
echo "1 {$symbol1}\n";
echo "2 {$symbol2}\n";
}
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CgokdGV4dCA9ICLQkCDRgNC+0LfQsCDRg9C/0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCI7CiRyZXN1bHRUcnVlID0gJ9C/0LDQu9C40L3QtNGA0L7QvCc7CiRyZXN1bHRGYWxzZSA9ICfQvdC1INC/0LDQu9C40L3QtNGA0L7QvCc7CgokdGV4dDIgPSBzdHJfcmVwbGFjZSgnICcsJycsICR0ZXh0KTsKJHRleHQyID0gbWJfc3RydG9sb3dlcigkdGV4dDIpOwoKJGxlbmdodCA9IG1iX3N0cmxlbigkdGV4dDIpOwokaGFsZkxlbmdodCA9IGZsb29yKCRsZW5naHQgLyAyKTsKCmZvciAoJGkgPSAwOyAkaSA8ICRoYWxmTGVuZ2h0OyAkaSsrKSB7Cgkkc3ltYm9sMSA9IG1iX3N1YnN0cigkdGV4dDIsICRpLCAxKTsKCSRzeW1ib2wyID0gbWJfc3Vic3RyKCR0ZXh0MiwgLSgkaSsxKSwgMSk7CgllY2hvICIxIHskc3ltYm9sMX1cbiI7CgllY2hvICIyIHskc3ltYm9sMn1cbiI7Cn0=