n = int(input()) c_list = [] for i in range(n): c_list.append(input()) for c in c_list: str_list =list(c) from collections import Counter count_dict = Counter(str_list).most_common() res = 0 for i in range(len(count_dict)): res += count_dict[i][1]* (26-i) print(re...