#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long int res = 0;
  string s, s2 = "";
  set<string> ss;
  cin >> s;
  int x = s.size();
  for (char i = 'a'; i <= 'z'; i++) {
    for (int j = 0; j <= x; j++) {
      s2 = "";
      for (int k = 0; k <= x; k++) {
        if (j == k) {
          s2 += i;
        } else if (k > j) {
          s2 += s[k - 1];
        } else
          s2 += s[k];
      }
      ss.insert(s2);
    }
  }
  cout << ss.size() << endl;
}
