#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[21];
  set<string> ss;
  cin >> s;
  int l = strlen(s);
  string s1(s);
  for (char c = 'a'; c <= 'z'; c++) {
    for (int(i) = (0); (i) < (l); ++(i)) {
      string str = s1.substr(0, i) + c + s1.substr(i, l - i);
      ss.insert(str);
    }
    ss.insert(s1 + c);
  }
  cout << ss.size() << endl;
  return 0;
}
