{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"Transmitting and memorizing information is a task that requires different coding systems for the best use of the available space. A well known system is that one where a number is associated to a character sequence. It is considered that the words are made only of small characters of the English alphabet a,b,c, ..., z (26 characters). From all these words we consider only those whose letters are in lexigraphical order (each character is smaller than the next character).\r\u003cbr\u003e\r\u003cbr\u003eThe coding system works like this: \r\u003cbr\u003e•\tThe words are arranged in the increasing order of their length.\r\u003cbr\u003e•\tThe words with the same length are arranged in lexicographical order (the order from the dictionary). \r\u003cbr\u003e•\tWe codify these words by their numbering, starting with a, as follows:\r\u003cbr\u003ea \t- 1 \r\u003cbr\u003eb \t- 2\r\u003cbr\u003e...\r\u003cbr\u003ez \t- 26\r\u003cbr\u003eab \t- 27\r\u003cbr\u003e...\r\u003cbr\u003eaz \t- 51\r\u003cbr\u003ebc \t- 52\r\u003cbr\u003e...\r\u003cbr\u003evwxyz \t- 83681\r\u003cbr\u003e...\r\u003cbr\u003e\r\u003cbr\u003eSpecify for a given word if it can be codified according to this coding system. For the affirmative case specify its code. \r\u003cbr\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The only line contains a word. There are some constraints:\r\u003cbr\u003e•\tThe word is maximum 10 letters length\r\u003cbr\u003e•\tThe English alphabet has 26 characters.\r\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"The output will contain the code of the given word, or 0 if the word can not be codified. "}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003ebf\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e55\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}