#include <iostream>
#include <string>
#define REP(i,n) for(int i=0;i<(n);++i)
#define SORT(a) sort((a).begin(),(a).end())
#define PB push_back
using namespace std;

char rotate(char c, int n){
  return 'A' + ((c - 'A') + (n % 26) + 26) % 26;
}

int main(){
  string S;
  cin >> S;
  int l = S.size();
  REP(i,l){
    cout << rotate(S[i], -(i+1));
  }
  cout << endl;
}