SP32951 ADASTRNG - Ada and Substring

Description

Ada the Ladybug was exchanging gifts with her friend. What a surprise - they gave her string. As they like her very much, they brought her a very long string. The goodness of the string is the number of distinct substrings. As you might already know, each letter has different value so Ada wants to know the number of distinct substrings begining with each letter.

Input Format

The first and the only line line of each test-case will contain a string (formed by lowercase english letters) **1 .**

Output Format

For each test-case, print 26 integers, the number of distinct substrings beginning on given letter.