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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: E = None
        self.x: G = None
        self.q: F = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: A = None
        self.p: F = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: C = None
        self.o: H = None
        self.y: A = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

b = A("b")
g = B("g")
a = C("a")
e = D("e")
j = E("j")
l = F("l")
d = G("d")
h = H("h")

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: E = None
        self.x: G = None
        self.q: F = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: A = None
        self.p: F = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: C = None
        self.o: H = None
        self.y: A = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

b = A("b")
g = B("g")
a = C("a")
e = D("e")
j = E("j")
l = F("l")
d = G("d")
h = H("h")

b.o = l
b.p = l
b.t = j
b.z = j
b.v = j
b.w = d
b.u = g
b.q = h
g.s = b
g.z = j
g.x = d
g.q = l
g.u = e
a.u = d
a.t = b
a.p = l
a.w = j
e.y = g
e.r = g
e.w = g
e.o = l
e.x = h
e.t = a
j.z = d
j.q = a
j.o = h
j.y = b
j.t = e
l.x = b
d.q = a
d.o = a
d.w = a
d.p = g
d.y = g
d.t = e
d.v = e
d.r = h
h.x = j
assert e.o.x.w.t.txt == "e"