class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: D = None
        self.t: D = None
        self.o: B = None
        self.w: E = None
        self.p: C = None
        self.s: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: D = None
        self.w: A = None
        self.p: H = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: F = None
        self.r: A = None
        self.y: D = None
        self.z: C = None
        self.u: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: D = None
        self.w: A = None
        self.p: H = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: F = None
        self.r: A = None
        self.y: D = None
        self.z: C = None
        self.u: B = None
        self.txt = txt

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

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