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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: D = None
        self.o: A = None
        self.v: C = None
        self.s: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: A = None
        self.y: B = None
        self.v: D = None
        self.z: C = None
        self.p: A = None
        self.x: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: D = None
        self.o: A = None
        self.v: C = None
        self.s: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: A = None
        self.y: B = None
        self.v: D = None
        self.z: C = None
        self.p: A = None
        self.x: C = None
        self.txt = txt

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

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

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