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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: B = None
        self.p: H = None
        self.w: A = None
        self.s: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: F = None
        self.s: D = None
        self.x: H = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: B = None
        self.p: H = None
        self.w: A = None
        self.s: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: F = None
        self.s: D = None
        self.x: H = None
        self.txt = txt

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

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