class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: B = None
        self.x: E = None
        self.w: F = None
        self.u: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: E = None
        self.v: A = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: I = None
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: B = None
        self.w: I = None
        self.r: C = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: E = None
        self.v: A = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: I = None
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: B = None
        self.w: I = None
        self.r: C = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: E = None
        self.txt = txt

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

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