Pyramid of the symbols#1119

Pyramid of the symbols

1 second
128 megabytes
Easy

Vasya wants to print a pyramid of a given symbol with height on the printer. Write a program to help him do this, ensuring that the program is "economically viable", i.e., it should print as few characters as possible.

Examples of pyramids are shown in the sample input and output. For clarity, spaces used for formatting are replaced by dots in the examples.

Input

The only line contains the symbol to use for printing the pyramid, followed by a space and a natural number (h \leq 50), which is the height of the pyramid.

Output

Print the total number of printed characters in the first line, and the pyramid itself below.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading