#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1);
const int N = 7777, mod = 998244353, M = 1e7 + 7;
const long long MAX = 5e18;
string s, t, v;
map<string, bool> mp;
int ans, n;
int main() {
  cin >> s;
  n = s.size();
  for (int i = 0; i <= n; i++) {
    for (char j = 'a'; j <= 'z'; j++) {
      v = t + j + s;
      if (!mp[v]) ans++;
      mp[v] = 1;
    }
    t += s[0];
    if (!s.empty()) s.erase(s.begin());
  }
  cout << ans;
  return 0;
}
