import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int len = sc.next().length();
        System.out.println(25 * len + 26);
    }
}