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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: B = None
        self.r: B = None
        self.w: H = None
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: D = None
        self.v: C = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: B = None
        self.r: B = None
        self.w: H = None
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: D = None
        self.v: C = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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