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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: E = None
        self.u: A = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: G = None
        self.z: A = None
        self.y: E = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: H = None
        self.y: E = None
        self.o: E = None
        self.v: F = None
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: E = None
        self.r: D = None
        self.w: E = None
        self.o: E = None
        self.y: C = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: G = None
        self.z: A = None
        self.r: B = None
        self.q: D = None
        self.w: G = None
        self.y: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: E = None
        self.u: A = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: G = None
        self.z: A = None
        self.y: E = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: H = None
        self.y: E = None
        self.o: E = None
        self.v: F = None
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: E = None
        self.r: D = None
        self.w: E = None
        self.o: E = None
        self.y: C = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: G = None
        self.z: A = None
        self.r: B = None
        self.q: D = None
        self.w: G = None
        self.y: G = None
        self.txt = txt

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

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