#include <bits/stdc++.h>
using namespace std;
const int N = 56;
char s[N];
int n;
void solve() {
  n = strlen(s);
  set<string> S;
  for (int i = 0; i <= n; ++i)
    for (int j = 0; j < 26; ++j) {
      string t;
      for (int c = 0; c < i; ++c) t += s[c];
      t += j + 'a';
      for (int c = i; c < n; ++c) t += s[c];
      S.insert(t);
    }
  cout << S.size() << endl;
}
int main() {
  while (cin >> s) solve();
  return 0;
}
