Petya, Petya, Petr, and Palindromes

Problem Name:
Petya, Petya, Petr, and Palindromes
Site:CodeForces
Links:
Tags:
Problem setters: