class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: H = None
        self.t: F = None
        self.y: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: H = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: D = None
        self.s: G = None
        self.z: G = None
        self.o: E = None
        self.t: F = None
        self.v: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: H = None
        self.u: H = None
        self.x: B = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: B = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: H = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: D = None
        self.s: G = None
        self.z: G = None
        self.o: E = None
        self.t: F = None
        self.v: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: H = None
        self.u: H = None
        self.x: B = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: B = None
        self.t: E = None
        self.txt = txt

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

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