def triangleString1(s):
    for i in range(1, len(s)+1):
        print s[:i]

def triangleString2(s):
    all = ""
    for i in range(1, len(s)+1):
        all = all+ s[:i] +'\n'
    return all

def main():
    s = raw_input("Enter string: ")
    triangleString1(s)
    tri = triangleString2(s+s)
    print tri.upper()
    print triangleString2("Hello")

main()
