class A:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: B = None
        self.q: E = None
        self.o: G = None
        self.x: G = None
        self.s: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: F = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: C = None
        self.q: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: F = None
        self.r: B = None
        self.z: G = None
        self.x: C = None
        self.q: B = None
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: B = None
        self.t: E = None
        self.w: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: F = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: C = None
        self.q: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: F = None
        self.r: B = None
        self.z: G = None
        self.x: C = None
        self.q: B = None
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: B = None
        self.t: E = None
        self.w: A = None
        self.txt = txt

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

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

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

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