import Data.List
p
(s
)=if any(\x
->reverse x
==x
)$permutations s
then"YES"else"NO"
main =
"aab",
"abc",
"racecar",
"aaa"
]
aW1wb3J0IERhdGEuTGlzdAoKcChzKT1pZiBhbnkoXHgtPnJldmVyc2UgeD09eCkkcGVybXV0YXRpb25zIHMgdGhlbiJZRVMiZWxzZSJOTyIKCm1haW4gPQogIHByaW50ICQgbWFwIHAgWwogICAgImFhYiIsCiAgICAiYWJjIiwKICAgICJyYWNlY2FyIiwKICAgICJhYWEiCiAgXQo=