def reverse(l):
    t = []
    for i in range(0,len(l[0])):
        t.append('')
    for i in l:
        for j in range(0,len(i)):
            t[j] += i[j]
    return t

def cleanup(l):
    for i in range(0,len(l)):
        for j in range(i+1,len(l)):
            if l[i] == l[j]:
                l.remove(l[i])
                break
    return l

def csv(l):
    for i in l:
        for j in i:
            print(j,end=',')
        print()

def main():
    a = ['00000000000000000000000000000000','11111111011100011111111011111110','10000011010010000000000010000010','10111011010000010100000010111010','10111011011010000100100010111010','10111011010010101000000010111010','10000011001000010011000010000010','11111111010101010101011011111110','11111111010101010101011011111110','00000000010110000010111000000000','01010111011011111011100110111110','01110000011111101111000010011110','11100111010010110100000111010110','10101000001011000000111100010110','00100111101000010101011010010000','10001100011001000011011000101000','10111111110010111111100101110110','01001100110110010101100110101010','00101111010000111101011100111010','01010100011000100011000000001010','01010111001010010000000100000110','10110000001010101100111001011010','11101111010100111111011111111100','11101111010100111111011111111100','00000000010000000010111000110110','11111111000000011011011010101000','10000011011001010111111000111010','10111011001110110010011111111010','10111011010111101010111010101100','10111011000100000001011110100000','10000011011000100110011100101100','11111111000000101010011001010000','00000000000000000000000000000000']
    r = len(a)
    c = len(a[0])
    cur = 0
    while True:
        a = cleanup(a)
        if cur == 0:
            tr = len(a)
            if (tr == r):
                break
            else:
                r = tr
        else:
            tc = len(a)
            if (tc == c):
                break
            else:
                c = tc
        a = reverse(a)
        cur = (cur + 1)%2
    if (cur == 1):
        a = reverse(a)
    csv(a)

main()

b48b8cc19283cbc7bd66c11b14c7a0d3993ee881
def reverse(l):
    t = []
    for i in range(0, len(l[0])):
        t.append('')
    for i in l:
        for j in range(0, len(i)):
            t[j] += i[j]
    return t


<mask token>


def main():
    a = ['00000000000000000000000000000000',
        '11111111011100011111111011111110',
        '10000011010010000000000010000010',
        '10111011010000010100000010111010',
        '10111011011010000100100010111010',
        '10111011010010101000000010111010',
        '10000011001000010011000010000010',
        '11111111010101010101011011111110',
        '11111111010101010101011011111110',
        '00000000010110000010111000000000',
        '01010111011011111011100110111110',
        '01110000011111101111000010011110',
        '11100111010010110100000111010110',
        '10101000001011000000111100010110',
        '00100111101000010101011010010000',
        '10001100011001000011011000101000',
        '10111111110010111111100101110110',
        '01001100110110010101100110101010',
        '00101111010000111101011100111010',
        '01010100011000100011000000001010',
        '01010111001010010000000100000110',
        '10110000001010101100111001011010',
        '11101111010100111111011111111100',
        '11101111010100111111011111111100',
        '00000000010000000010111000110110',
        '11111111000000011011011010101000',
        '10000011011001010111111000111010',
        '10111011001110110010011111111010',
        '10111011010111101010111010101100',
        '10111011000100000001011110100000',
        '10000011011000100110011100101100',
        '11111111000000101010011001010000', '00000000000000000000000000000000']
    r = len(a)
    c = len(a[0])
    cur = 0
    while True:
        a = cleanup(a)
        if cur == 0:
            tr = len(a)
            if tr == r:
                break
            else:
                r = tr
        else:
            tc = len(a)
            if tc == c:
                break
            else:
                c = tc
        a = reverse(a)
        cur = (cur + 1) % 2
    if cur == 1:
        a = reverse(a)
    csv(a)


<mask token>

def reverse(l):
    t = []
    for i in range(0, len(l[0])):
        t.append('')
    for i in l:
        for j in range(0, len(i)):
            t[j] += i[j]
    return t


def cleanup(l):
    for i in range(0, len(l)):
        for j in range(i + 1, len(l)):
            if l[i] == l[j]:
                l.remove(l[i])
                break
    return l


<mask token>


def main():
    a = ['00000000000000000000000000000000',
        '11111111011100011111111011111110',
        '10000011010010000000000010000010',
        '10111011010000010100000010111010',
        '10111011011010000100100010111010',
        '10111011010010101000000010111010',
        '10000011001000010011000010000010',
        '11111111010101010101011011111110',
        '11111111010101010101011011111110',
        '00000000010110000010111000000000',
        '01010111011011111011100110111110',
        '01110000011111101111000010011110',
        '11100111010010110100000111010110',
        '10101000001011000000111100010110',
        '00100111101000010101011010010000',
        '10001100011001000011011000101000',
        '10111111110010111111100101110110',
        '01001100110110010101100110101010',
        '00101111010000111101011100111010',
        '01010100011000100011000000001010',
        '01010111001010010000000100000110',
        '10110000001010101100111001011010',
        '11101111010100111111011111111100',
        '11101111010100111111011111111100',
        '00000000010000000010111000110110',
        '11111111000000011011011010101000',
        '10000011011001010111111000111010',
        '10111011001110110010011111111010',
        '10111011010111101010111010101100',
        '10111011000100000001011110100000',
        '10000011011000100110011100101100',
        '11111111000000101010011001010000', '00000000000000000000000000000000']
    r = len(a)
    c = len(a[0])
    cur = 0
    while True:
        a = cleanup(a)
        if cur == 0:
            tr = len(a)
            if tr == r:
                break
            else:
                r = tr
        else:
            tc = len(a)
            if tc == c:
                break
            else:
                c = tc
        a = reverse(a)
        cur = (cur + 1) % 2
    if cur == 1:
        a = reverse(a)
    csv(a)


<mask token>

def reverse(l):
    t = []
    for i in range(0, len(l[0])):
        t.append('')
    for i in l:
        for j in range(0, len(i)):
            t[j] += i[j]
    return t


def cleanup(l):
    for i in range(0, len(l)):
        for j in range(i + 1, len(l)):
            if l[i] == l[j]:
                l.remove(l[i])
                break
    return l


def csv(l):
    for i in l:
        for j in i:
            print(j, end=',')
        print()


def main():
    a = ['00000000000000000000000000000000',
        '11111111011100011111111011111110',
        '10000011010010000000000010000010',
        '10111011010000010100000010111010',
        '10111011011010000100100010111010',
        '10111011010010101000000010111010',
        '10000011001000010011000010000010',
        '11111111010101010101011011111110',
        '11111111010101010101011011111110',
        '00000000010110000010111000000000',
        '01010111011011111011100110111110',
        '01110000011111101111000010011110',
        '11100111010010110100000111010110',
        '10101000001011000000111100010110',
        '00100111101000010101011010010000',
        '10001100011001000011011000101000',
        '10111111110010111111100101110110',
        '01001100110110010101100110101010',
        '00101111010000111101011100111010',
        '01010100011000100011000000001010',
        '01010111001010010000000100000110',
        '10110000001010101100111001011010',
        '11101111010100111111011111111100',
        '11101111010100111111011111111100',
        '00000000010000000010111000110110',
        '11111111000000011011011010101000',
        '10000011011001010111111000111010',
        '10111011001110110010011111111010',
        '10111011010111101010111010101100',
        '10111011000100000001011110100000',
        '10000011011000100110011100101100',
        '11111111000000101010011001010000', '00000000000000000000000000000000']
    r = len(a)
    c = len(a[0])
    cur = 0
    while True:
        a = cleanup(a)
        if cur == 0:
            tr = len(a)
            if tr == r:
                break
            else:
                r = tr
        else:
            tc = len(a)
            if tc == c:
                break
            else:
                c = tc
        a = reverse(a)
        cur = (cur + 1) % 2
    if cur == 1:
        a = reverse(a)
    csv(a)


<mask token>

def reverse(l):
    t = []
    for i in range(0, len(l[0])):
        t.append('')
    for i in l:
        for j in range(0, len(i)):
            t[j] += i[j]
    return t


def cleanup(l):
    for i in range(0, len(l)):
        for j in range(i + 1, len(l)):
            if l[i] == l[j]:
                l.remove(l[i])
                break
    return l


def csv(l):
    for i in l:
        for j in i:
            print(j, end=',')
        print()


def main():
    a = ['00000000000000000000000000000000',
        '11111111011100011111111011111110',
        '10000011010010000000000010000010',
        '10111011010000010100000010111010',
        '10111011011010000100100010111010',
        '10111011010010101000000010111010',
        '10000011001000010011000010000010',
        '11111111010101010101011011111110',
        '11111111010101010101011011111110',
        '00000000010110000010111000000000',
        '01010111011011111011100110111110',
        '01110000011111101111000010011110',
        '11100111010010110100000111010110',
        '10101000001011000000111100010110',
        '00100111101000010101011010010000',
        '10001100011001000011011000101000',
        '10111111110010111111100101110110',
        '01001100110110010101100110101010',
        '00101111010000111101011100111010',
        '01010100011000100011000000001010',
        '01010111001010010000000100000110',
        '10110000001010101100111001011010',
        '11101111010100111111011111111100',
        '11101111010100111111011111111100',
        '00000000010000000010111000110110',
        '11111111000000011011011010101000',
        '10000011011001010111111000111010',
        '10111011001110110010011111111010',
        '10111011010111101010111010101100',
        '10111011000100000001011110100000',
        '10000011011000100110011100101100',
        '11111111000000101010011001010000', '00000000000000000000000000000000']
    r = len(a)
    c = len(a[0])
    cur = 0
    while True:
        a = cleanup(a)
        if cur == 0:
            tr = len(a)
            if tr == r:
                break
            else:
                r = tr
        else:
            tc = len(a)
            if tc == c:
                break
            else:
                c = tc
        a = reverse(a)
        cur = (cur + 1) % 2
    if cur == 1:
        a = reverse(a)
    csv(a)


main()

def reverse(l):
    t = []
    for i in range(0,len(l[0])):
        t.append('')
    for i in l:
        for j in range(0,len(i)):
            t[j] += i[j]
    return t

def cleanup(l):
    for i in range(0,len(l)):
        for j in range(i+1,len(l)):
            if l[i] == l[j]:
                l.remove(l[i])
                break
    return l

def csv(l):
    for i in l:
        for j in i:
            print(j,end=',')
        print()

def main():
    a = ['00000000000000000000000000000000','11111111011100011111111011111110','10000011010010000000000010000010','10111011010000010100000010111010','10111011011010000100100010111010','10111011010010101000000010111010','10000011001000010011000010000010','11111111010101010101011011111110','11111111010101010101011011111110','00000000010110000010111000000000','01010111011011111011100110111110','01110000011111101111000010011110','11100111010010110100000111010110','10101000001011000000111100010110','00100111101000010101011010010000','10001100011001000011011000101000','10111111110010111111100101110110','01001100110110010101100110101010','00101111010000111101011100111010','01010100011000100011000000001010','01010111001010010000000100000110','10110000001010101100111001011010','11101111010100111111011111111100','11101111010100111111011111111100','00000000010000000010111000110110','11111111000000011011011010101000','10000011011001010111111000111010','10111011001110110010011111111010','10111011010111101010111010101100','10111011000100000001011110100000','10000011011000100110011100101100','11111111000000101010011001010000','00000000000000000000000000000000']
    r = len(a)
    c = len(a[0])
    cur = 0
    while True:
        a = cleanup(a)
        if cur == 0:
            tr = len(a)
            if (tr == r):
                break
            else:
                r = tr
        else:
            tc = len(a)
            if (tc == c):
                break
            else:
                c = tc
        a = reverse(a)
        cur = (cur + 1)%2
    if (cur == 1):
        a = reverse(a)
    csv(a)

main()
