Substring (Easy)#5290

Substring (Easy)

1 segundo
128 megabytes
Muy fácil

Given a string . Count the number of its different substrings. Do not count the empty substring.

Entrada

One string consisting of lowercase Latin letters. The string length is no more than characters.

Salida

Print the number of different substrings in .

Ejemplos

Ejemplo 1

Loading
Loading

Ejemplo 2

Loading
Loading