i = 5
j = 1
while i >= 1:
    print("Shihab", end=" ")
    while j <= 4:
        print("Programmer", end=" ")
        j += 1
    i -= 1
    j = 1
    print()


i = 5
j = 1
while i >= 1:
    print("Shihab", end=" ")
    while j <= 4:
        print("Programmer", end=" ")
        j += 1
    i -= 1
    j = 1
    print()

