import java.util.Scanner;
public class Stringi {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Введите символы: ");
String arr = scanner.nextLine();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < arr.length(); i++) {
for (int j = 0; j < i + 1; j++) {
sb.append(arr.charAt(i));
}
sb.append("\n");
}
String result = sb.toString();
System.out.println(result.trim());
}
}