#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  int len = s.size();
  string rev = s;
  reverse(s.begin(), s.end());
  cout << s << "\n";
  cout << rev << "\n";
  if (s == rev) {
    cout << "Yes"
         << "\n";
  } else {
    cout << "No"
         << "\n";
  }
  return 0;
}
