#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long k = 26 * s.length() + 26, q = 0;
  if (s.length() == 1) {
    cout << "51";
    return 0;
  }
  for (long long i = 0; i < s.length() - 1; i++) {
    if (s[i] == s[i + 1])
      q++;
    else {
      k -= q + 1;
      q = 0;
    }
  }
  if (s[s.length() - 1] == s[s.length() - 2]) k -= 1 + q;
  if (s[s.length() - 1] != s[s.length() - 2]) k -= 1;
  cout << k;
  return 0;
}
