42.38%

Given a string of a constant length, print a triangle out of it. The triangle should start with the first character of the string and keeps growing downwards by adding one character from the string.

The spaces on the left side of the triangle should be replaced with dot character.

**Input:**

First line of the input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of a single line contaning a string of length N.

**Output: **Corresponding to each test case, a pattern of triangle is printed in N lines.

**Constraints:**

1 <=T<= 30

N= 5

**Example:**

**Input:**

2

geeks

thisi

**Output:**

....g

...ge

..gee

.geek

geeks

....t

...th

..thi

.this

thisi

akhayrutdinov | 30 |

Prateek Gole | 30 |

krushna.sharma | 29 |

StarkMaverick | 28 |

ujjwalgarg | 26 |

Lam Ngoc Pham | 405 |

All Is Well | 399 |

Divvya Sinha | 367 |

Prateek Gole | 347 |

skull tone | 310 |

akhayrutdinov | 3847 |

sanjay05 | 3366 |

Michael Riegger | 2015 |

Jasleen Kaur 2 | 2012 |

Quandray | 1949 |