# your code goes here
s = "GRIREAAEEALRALSNNLLITFT EWAVHPT "
 
x = 2
 
ans = ''
while (x<100):
    ans = ''
    y = 0
    while (y<10):
        ans+=s[y::x]
        y+=1
    x+=1
    print(ans)
    print("\n")
 
 
print(ans)