#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  string s;
  cin >> s;
  if (s.size() == 1) {
    cout << "51";
    return 0;
  }
  cout << ((26 - (s.size())) * (s.size() + 1)) + ((s.size()) * (s.size()));
}
