class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: B = None
        self.r: G = None
        self.s: F = None
        self.t: A = None
        self.o: B = None
        self.u: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: D = None
        self.w: D = None
        self.p: D = None
        self.r: D = None
        self.u: F = None
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: B = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: B = None
        self.z: E = None
        self.t: G = None
        self.o: A = None
        self.y: A = None
        self.p: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: D = None
        self.w: D = None
        self.p: D = None
        self.r: D = None
        self.u: F = None
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: B = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: B = None
        self.z: E = None
        self.t: G = None
        self.o: A = None
        self.y: A = None
        self.p: B = None
        self.txt = txt

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

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

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