Sort the hashes
Set of words is given. Sort them in ascending order of hashes.
The hash of the string is the sum of the ASCII codes of the characters in it. For example, hash("Cat") = , hash("dOG") = .
Let a string be less than a string if hash() < hash(). For example, hash("dOG") < hash("Cat") since .
However, there is a special word "ADAUniversity" in the text, that should always be at the start of the sorted list. We assume that hash("ADAUniversity") = .
For words that have the same hash, their relative order must be preserved (implement a stable sort).
Input
The text contains a set of words. Each word consists of letters of Latin alphabet (lower and upper case). Only spaces can be present between the words. The number of words in the text does not exceed . The length of each word does not exceed characters.
Output
Print all words sorted according to the given condition. Each word should be printed on a separate line.