#include <bits/stdc++.h>
bool cmp(int a, int b) { return a > b; }
using namespace std;
const int N = 22;
int main() {
  char a[N];
  cin >> a;
  int len = strlen(a);
  int count = len;
  int i, j;
  for (i = 0; i < len - 1; i++) {
    for (j = i + 1; j < len; j++) {
      if (a[i] == a[j] && i == j - i) {
      }
    }
  }
  cout << 26 * (len + 1) - count << endl;
  cin >> j;
  return 0;
}
