#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int cnt = 1;
  int ans = s.size() * 26 + 26;
  s.push_back('/');
  for (int i = 1; i < s.size(); ++i) {
    if (s[i] == s[i - 1])
      cnt++;
    else {
      ans -= cnt;
      cnt = 1;
    }
  }
  cout << ans;
  return 0;
}
