class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

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

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