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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: F = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: E = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: B = None
        self.q: C = None
        self.t: B = None
        self.w: I = None
        self.r: C = None
        self.p: C = None
        self.u: E = None
        self.x: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: F = None
        self.y: G = None
        self.x: E = None
        self.w: F = None
        self.o: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: F = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: E = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: B = None
        self.q: C = None
        self.t: B = None
        self.w: I = None
        self.r: C = None
        self.p: C = None
        self.u: E = None
        self.x: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: F = None
        self.y: G = None
        self.x: E = None
        self.w: F = None
        self.o: D = None
        self.txt = txt

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

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