'''><> (fish) code (with only p1-) generator written by randomra'''

def repnum(n):
    assert n>=0
    return '11'+'1-'*n+'-'
    
def putchar(c,x,y):   
    return repnum(ord(c))+repnum(x)+repnum(y)+'p'
    
def putstring(s,x=0,y=0,xo=1,yo=0):
    r=''
    xc,yc=x,y
    for c in s:
        r+=putchar(c,xc,yc)
        xc+=xo
        yc+=yo
    return r
    
def newcode(w,h,c=' '):
    b=[[c for j in range (h)] for i in range(w)]
    return b
    
def paste(b,s,x=0,y=0,xo=1,yo=0):
    xc,yc=x,y
    for c in s:
        b[xc][yc]=c
        xc+=xo
        yc+=yo
    
def printcode(b):
    for y in range(len(b)):
        for x in range(len(b[0])):
            print(b[x][y],end='')
        print()

b=newcode(2000,2000,'1')
paste(b,putstring(r'"wor"\ooo;',0,0,1,0),0,0,1,0)
paste(b,putstring(r'"loc"ooo;',0,0,1,0),0,0,0,1)
paste(b,putstring(r'"klb"ooo;',6,0,1,0),5,10,0,1)
paste(b,putstring(r'"dia"ooo;',0,0,1,0),0,0,1,1)
printcode(b)
