class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: F = None
        self.p: H = None
        self.t: H = None
        self.v: F = None
        self.u: F = None
        self.w: F = None
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: B = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: D = None
        self.z: C = None
        self.t: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: B = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: D = None
        self.z: C = None
        self.t: G = None
        self.txt = txt

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

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

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

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