class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: G = None
        self.z: G = None
        self.p: D = None
        self.q: C = None
        self.r: C = None
        self.t: G = None
        self.s: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: G = None
        self.q: H = None
        self.r: E = None
        self.u: B = None
        self.t: F = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: A = None
        self.r: F = None
        self.y: A = None
        self.t: E = None
        self.o: E = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: H = None
        self.v: G = None
        self.o: A = None
        self.z: H = None
        self.x: C = None
        self.t: E = None
        self.r: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: E = None
        self.p: D = None
        self.w: C = None
        self.t: B = None
        self.v: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: G = None
        self.q: H = None
        self.r: E = None
        self.u: B = None
        self.t: F = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: A = None
        self.r: F = None
        self.y: A = None
        self.t: E = None
        self.o: E = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: H = None
        self.v: G = None
        self.o: A = None
        self.z: H = None
        self.x: C = None
        self.t: E = None
        self.r: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: E = None
        self.p: D = None
        self.w: C = None
        self.t: B = None
        self.v: G = None
        self.txt = txt

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

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