#include <bits/stdc++.h>
using namespace std;
int main() {
  int x[27];
  int y[27];
  char z[25];
  cin >> z;
  int i, sum = 0, flag = 0;
  for (i = 1; i < strlen(z); i++) {
    if (z[i] = z[i - 1])
      sum++;
    else {
      flag = flag + sum;
      sum = 0;
    }
  }
  cout << (strlen(z) + 1) * 26 - strlen(z) << endl;
}
