class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: C = None
        self.o: C = None
        self.q: A = None
        self.x: G = None
        self.s: C = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: F = None
        self.w: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: E = None
        self.q: F = None
        self.r: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: C = None
        self.o: C = None
        self.q: A = None
        self.x: G = None
        self.s: C = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: F = None
        self.w: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: E = None
        self.q: F = None
        self.r: F = None
        self.txt = txt

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

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

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

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