#n = 12345
#r = str(n)[::-1]
#print(int(r))

"""
def rev(x):
        r=0
        i=0
        while x/10 > 0:
                r = (r * 10) + (x % 10)
                x= x/10
        r = (r * 10) + (x % 10)
        return r
print rev(21)

"""

"""
def swap(s1, s2):
   return s2, s1
s1 = 'a'
s2 = 'b'
s1, s2 = swap(s1, s2)
print s1, s2
"""


https://codescracker.com/python/program/python-program-swap-two-numbers.htm

for i in range(6,0,-1):
    print(i * '' + (6-i) * '*')

