class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: H = None
        self.v: G = None
        self.p: G = None
        self.w: F = None
        self.y: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: E = None
        self.x: D = None
        self.w: G = None
        self.r: F = None
        self.z: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: H = None
        self.y: F = None
        self.o: C = None
        self.t: G = None
        self.q: C = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: E = None
        self.x: D = None
        self.w: G = None
        self.r: F = None
        self.z: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: H = None
        self.y: F = None
        self.o: C = None
        self.t: G = None
        self.q: C = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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