class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: D = None
        self.w: G = None
        self.s: F = None
        self.z: A = None
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: F = None
        self.v: B = None
        self.q: H = None
        self.z: B = None
        self.s: A = None
        self.t: H = None
        self.w: E = None
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: H = None
        self.t: F = None
        self.y: J = None
        self.o: F = None
        self.q: F = None
        self.w: B = None
        self.z: G = None
        self.s: G = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: A = None
        self.o: G = None
        self.u: B = None
        self.z: H = None
        self.s: C = None
        self.w: C = None
        self.y: G = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: H = None
        self.u: I = None
        self.p: I = None
        self.x: F = None
        self.q: F = None
        self.t: E = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: E = None
        self.r: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

b = A("b")
a = B("a")
n = C("n")
d = D("d")
m = E("m")
i = F("i")
l = G("l")
c = H("c")
k = I("k")
e = J("e")

b.p = a
a.y = m
a.o = d
a.w = l
a.s = i
a.t = i
a.z = b
n.o = m
n.w = m
n.x = i
n.v = a
n.z = a
n.q = c
n.t = c
n.s = b
n.r = k
d.r = c
d.v = c
d.t = i
d.o = i
d.q = i
d.y = e
d.w = a
d.z = l
d.s = l
d.u = n
m.w = c
m.z = b
i.t = c
i.z = c
i.q = b
i.o = l
i.y = l
i.u = a
i.s = n
i.w = n
i.v = m
l.w = e
l.v = c
l.r = c
l.u = k
l.p = k
l.x = i
l.q = i
l.t = m
c.q = e
k.v = d
k.o = m
k.r = b
e.p = l
assert i.z.q.p.txt == "
class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: D = None
        self.w: G = None
        self.s: F = None
        self.z: A = None
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: F = None
        self.v: B = None
        self.q: H = None
        self.z: B = None
        self.s: A = None
        self.t: H = None
        self.w: E = None
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: H = None
        self.t: F = None
        self.y: J = None
        self.o: F = None
        self.q: F = None
        self.w: B = None
        self.z: G = None
        self.s: G = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: A = None
        self.o: G = None
        self.u: B = None
        self.z: H = None
        self.s: C = None
        self.w: C = None
        self.y: G = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: H = None
        self.u: I = None
        self.p: I = None
        self.x: F = None
        self.q: F = None
        self.t: E = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: E = None
        self.r: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

b = A("b")
a = B("a")
n = C("n")
d = D("d")
m = E("m")
i = F("i")
l = G("l")
c = H("c")
k = I("k")
e = J("e")

b.p = a
a.y = m
a.o = d
a.w = l
a.s = i
a.t = i
a.z = b
n.o = m
n.w = m
n.x = i
n.v = a
n.z = a
n.q = c
n.t = c
n.s = b
n.r = k
d.r = c
d.v = c
d.t = i
d.o = i
d.q = i
d.y = e
d.w = a
d.z = l
d.s = l
d.u = n
m.w = c
m.z = b
i.t = c
i.z = c
i.q = b
i.o = l
i.y = l
i.u = a
i.s = n
i.w = n
i.v = m
l.w = e
l.v = c
l.r = c
l.u = k
l.p = k
l.x = i
l.q = i
l.t = m
c.q = e
k.v = d
k.o = m
k.r = b
e.p = l
assert i.z.q.p.txt == "l"