#include <iostream>
#include <string>
using namespace std;
bool palindrome (string const *s) {
for (int i = 0; i < (*s).size() / 2; ++i) {
if ((*s)[i] != (*s)[(*s).size() - i - 1]) return false;
}
return true;
}
int main() {
string s;
cin >> s;
for (int i = 0; i <= s.length(); i++) {
s += s[0];
s.erase(s.begin());
if (palindrome(&s)) {
cout << "yes";
return 0;
}
}
cout << "no";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwpib29sIHBhbGluZHJvbWUgKHN0cmluZyBjb25zdCAqcykgewoJZm9yIChpbnQgaSA9IDA7IGkgPCAoKnMpLnNpemUoKSAvIDI7ICsraSkgewoJCWlmICgoKnMpW2ldICE9ICgqcylbKCpzKS5zaXplKCkgLSBpIC0gMV0pIHJldHVybiBmYWxzZTsKCX0KCXJldHVybiB0cnVlOwp9CmludCBtYWluKCkgewogICAgc3RyaW5nIHM7CiAgICBjaW4gPj4gczsKICAgIGZvciAoaW50IGkgPSAwOyBpIDw9IHMubGVuZ3RoKCk7IGkrKykgewogICAgICAgIHMgKz0gc1swXTsKICAgICAgICBzLmVyYXNlKHMuYmVnaW4oKSk7CiAgICAgICAgaWYgKHBhbGluZHJvbWUoJnMpKSB7CiAgICAgICAgICAgIGNvdXQgPDwgInllcyI7CiAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgIH0KICAgIH0KICAgIGNvdXQgPDwgIm5vIjsKICAgIHJldHVybiAwOwp9Cg==