#include<iostream>
using namespace std;
int main(){
    string str,str2;
    cin >> str;
    int n = str.size();
    for(int i = 0;i < n;i++){
        str2.push_back(str[n-i-1]);
    }
    cout << str2 << endl;
    return 0;
}

#include <bits/stdc++.h>
using namespace std;

string s;

int main() {
  cin >> s;
  for (int i = 1; i < s.size(); ++i)
    if (s[i - 1] == 'A' && s[i] == 'C') {
      cout << "Yes" << endl;
      return 0;
    }
  cout << "No" << endl;
  return 0;
}
