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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: F = None
        self.t: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: E = None
        self.p: G = None
        self.q: C = None
        self.r: C = None
        self.x: C = None
        self.y: H = None
        self.txt = txt

k = A("k")
b = B("b")
h = C("h")
g = D("g")
c = E("c")
i = F("i")
f = G("f")
a = H("a")
d = D("d")
e = H("e")

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: F = None
        self.t: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: E = None
        self.p: G = None
        self.q: C = None
        self.r: C = None
        self.x: C = None
        self.y: H = None
        self.txt = txt

k = A("k")
b = B("b")
h = C("h")
g = D("g")
c = E("c")
i = F("i")
f = G("f")
a = H("a")
d = D("d")
e = H("e")

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