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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: E = None
        self.q: D = None
        self.r: D = None
        self.s: A = None
        self.z: F = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

a = A("a")
m = B("m")
d = C("d")
l = D("l")
f = E("f")
e = F("e")
j = G("j")
i = H("i")
c = B("c")

a.t = l
a.z = l
a.r = f
a.v = i
a.q = e
m.r = e
m.t = l
m.z = f
d.p = f
d.y = e
l.x = d
l.p = i
f.p = i
f.u = a
e.r = c
e.y = d
e.t = i
j.t = f
j.p = f
j.q = l
j.r = l
j.y = l
j.s = a
j.z = e
i.z = l
c.r = e
c.t = l
c.z = f
assert i.z.x.y.t.z.txt == "
class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: E = None
        self.v: H = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: E = None
        self.q: D = None
        self.r: D = None
        self.s: A = None
        self.z: F = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

a = A("a")
m = B("m")
d = C("d")
l = D("l")
f = E("f")
e = F("e")
j = G("j")
i = H("i")
c = B("c")

a.t = l
a.z = l
a.r = f
a.v = i
a.q = e
m.r = e
m.t = l
m.z = f
d.p = f
d.y = e
l.x = d
l.p = i
f.p = i
f.u = a
e.r = c
e.y = d
e.t = i
j.t = f
j.p = f
j.q = l
j.r = l
j.y = l
j.s = a
j.z = e
i.z = l
c.r = e
c.t = l
c.z = f
assert i.z.x.y.t.z.txt == "l"