class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: G = None
        self.w: C = None
        self.o: G = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: E = None
        self.q: G = None
        self.x: G = None
        self.v: F = None
        self.u: D = None
        self.txt = txt

i = A("i")
n = B("n")
k = C("k")
e = D("e")
b = E("b")
h = F("h")
g = G("g")
a = H("a")
l = G("l")

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: G = None
        self.w: C = None
        self.o: G = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: E = None
        self.q: G = None
        self.x: G = None
        self.v: F = None
        self.u: D = None
        self.txt = txt

i = A("i")
n = B("n")
k = C("k")
e = D("e")
b = E("b")
h = F("h")
g = G("g")
a = H("a")
l = G("l")

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