class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: D = None
        self.q: F = None
        self.s: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: C = None
        self.v: D = None
        self.u: C = None
        self.p: F = None
        self.q: D = None
        self.txt = txt

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

h = A("h")
d = B("d")
i = C("i")
e = D("e")
l = E("l")
a = F("a")
j = F("j")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: C = None
        self.v: D = None
        self.u: C = None
        self.p: F = None
        self.q: D = None
        self.txt = txt

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

h = A("h")
d = B("d")
i = C("i")
e = D("e")
l = E("l")
a = F("a")
j = F("j")

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