# num=int(input("enter the no."))
# rev = 0
# while num>0:
#     rev=(rev*10)+num%10
#     num=num//10
# print(rev)


# pattern 1 to 5
'''num=int(input("enter the no."))
i=1
while i<=num:
    j=1
    while j<=i:
        print("*",end=" ")   
        j=j+1
    print()
    i=i+1'''

#print 7 to 1
'''num= int(input("enter the no."))
i=1
while i<=num:
    j=i
    while j<=num:
        print("*",end=" ")
        j=j+1
    print()
    i=i+1'''

# num=int(input("enter the no."))
'''a=1
i=1
while i<=5:
    j=1
    while j<=5-i:
        print(" ",end=" ")   
        j=j+1
    k=1
    while k<=i :
        print(k, end=" ")
        k=k+1
    p=i-1
    while p>0:
        print(p,end=" ")
        p=p-1
    print()
    i=i+1'''
    


# i=5
# while i>=1:
#     b=5
#     while b>=1:
#         print(i, end="")
#         b=b-1
#     print()
#     i=i-1
