#include <bits/stdc++.h>
int main() {
  int arr[26] = {0}, l, i, k = 0, diff = 0, num;
  char str[100];
  scanf("%s", str);
  l = strlen(str);
  for (i = 0; i < l; i++) {
    arr[str[i] - 'a']++;
  }
  for (i = 0; i < 26; i++) {
    if (arr[i] > 0) diff = diff + (arr[i] - 0);
    if (arr[i] == 0) k++;
  }
  k = 26 - k;
  num = 26 * (l + 1);
  num = num - diff;
  printf("%d", num);
  return 0;
}
