class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: C = None
        self.r: H = None
        self.v: E = None
        self.x: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: H = None
        self.q: G = None
        self.s: A = None
        self.r: A = None
        self.y: G = None
        self.u: D = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: E = None
        self.z: C = None
        self.r: C = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: H = None
        self.q: G = None
        self.s: A = None
        self.r: A = None
        self.y: G = None
        self.u: D = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: E = None
        self.z: C = None
        self.r: C = None
        self.txt = txt

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

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

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

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