In chuỗi

View as PDF



Problem type
Points: 100 (p) Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Nhập vào xâu \(S\).In xâu \(S\) theo test ví dụ.

Input

  • Nhập xâu \(S\) (không quá 1000 ký tự).

Output

  • In ra theo yêu cầu đề bài.

Example

Test 1
Input
abcde
Output
a
ab
abc
abcd
abcde
abcd
abc
ab
a

Comments

There are no comments at the moment.