class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: I = None
        self.o: E = None
        self.r: D = None
        self.s: H = None
        self.y: G = None
        self.q: D = None
        self.u: F = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: F = None
        self.v: F = None
        self.o: H = None
        self.u: F = None
        self.x: F = None
        self.w: A = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: I = None
        self.o: E = None
        self.r: D = None
        self.s: H = None
        self.y: G = None
        self.q: D = None
        self.u: F = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: F = None
        self.v: F = None
        self.o: H = None
        self.u: F = None
        self.x: F = None
        self.w: A = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

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