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

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

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: B = None
        self.s: G = None
        self.q: B = None
        self.y: E = None
        self.txt = txt

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

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

e = A("e")
g = B("g")
j = C("j")
n = D("n")
b = E("b")
f = F("f")
c = G("c")
k = H("k")
l = H("l")

e.x = b
e.t = f
g.z = j
j.t = k
n.r = c
n.p = e
b.t = g
b.v = f
b.w = e
b.u = j
f.p = e
f.u = g
f.q = g
f.s = c
f.y = b
c.u = b
k.o = b
k.p = b
k.r = j
k.q = l
k.v = n
k.u = n
l.o = b
l.p = b
l.r = j
l.q = k
l.v = n
l.u = n
assert k.o.v.p.t.s.txt == "
class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: B = None
        self.s: G = None
        self.q: B = None
        self.y: E = None
        self.txt = txt

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

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

e = A("e")
g = B("g")
j = C("j")
n = D("n")
b = E("b")
f = F("f")
c = G("c")
k = H("k")
l = H("l")

e.x = b
e.t = f
g.z = j
j.t = k
n.r = c
n.p = e
b.t = g
b.v = f
b.w = e
b.u = j
f.p = e
f.u = g
f.q = g
f.s = c
f.y = b
c.u = b
k.o = b
k.p = b
k.r = j
k.q = l
k.v = n
k.u = n
l.o = b
l.p = b
l.r = j
l.q = k
l.v = n
l.u = n
assert k.o.v.p.t.s.txt == "c"